Ejemplo n.º 1
0
  def __init__(self, buildout, name, options):
    BaseSlapRecipe.__init__(self, buildout, name, options)
    self.destroy_wrapper_location = os.path.join(self.bin_directory, 'destroy')
    self.running_wrapper_location = os.path.join(self.bin_directory, 'run')

    # wrapper parts
    options['scripts'] = '''
      run
      destroy
    '''
    options['entry-points'] = '''
      run=slapos.recipe.libcloud.run:run
      destroy=slapos.recipe.libcloud.destroy:destroy
    '''
    self.egg = zc.recipe.egg.Egg(buildout, '', options)

    self.configuration_file = os.path.join(self.etc_directory, 'cloudmgr.cnf')
Ejemplo n.º 2
0
    def __init__(self, buildout, name, options):
        BaseSlapRecipe.__init__(self, buildout, name, options)
        self.destroy_wrapper_location = os.path.join(self.bin_directory,
                                                     'destroy')
        self.running_wrapper_location = os.path.join(self.bin_directory, 'run')

        # wrapper parts
        options['scripts'] = '''
      run
      destroy
    '''
        options['entry-points'] = '''
      run=slapos.recipe.libcloud.run:run
      destroy=slapos.recipe.libcloud.destroy:destroy
    '''
        self.egg = zc.recipe.egg.Egg(buildout, '', options)

        self.configuration_file = os.path.join(self.etc_directory,
                                               'cloudmgr.cnf')
Ejemplo n.º 3
0
 def __init__(self, buildout, name, options):
   self.egg = zc.recipe.egg.Egg(buildout, options['recipe'], options)
   BaseSlapRecipe.__init__(self, buildout, name, options)
Ejemplo n.º 4
0
 def __init__(self, buildout, name, options):
   BaseSlapRecipe.__init__(self, buildout, name, options)
   self.pjsua_configuration_file = os.path.join(self.etc_directory,
                                                'pjsua.conf')
Ejemplo n.º 5
0
 def __init__(self, buildout, name, options):
     BaseSlapRecipe.__init__(self, buildout, name, options)
     self.pjsua_configuration_file = os.path.join(self.etc_directory,
                                                  'pjsua.conf')