Example #1
0
	def lightsOut(self):
		import rocks.installcgi
		import rocks.roll
		
		installcgi = rocks.installcgi.InstallCGI()
		generator = rocks.roll.Generator()

		generator.parse('/tmp/rolls.xml')
		rollList = generator.rolls

		os.environ['PYTHONPATH'] = '/tmp/updates/usr/share/createrepo'
		for roll in rollList:
			installcgi.getKickstartFiles(roll)

		installcgi.rebuildDistro(rollList)

		return
Example #2
0
    def lightsOut(self):
        import rocks.installcgi
        import rocks.roll

        installcgi = rocks.installcgi.InstallCGI()
        generator = rocks.roll.Generator()

        generator.parse('/tmp/rolls.xml')
        rollList = generator.rolls

        os.environ['PYTHONPATH'] = '/tmp/updates/usr/share/createrepo'
        for roll in rollList:
            installcgi.getKickstartFiles(roll)

        installcgi.rebuildDistro(rollList)

        return