示例#1
0
文件: test.py 项目: vkuusk/skybase.io
    def __init__(self, all_args=None, runner_cfg=None):

        SkyTask.__init__(self, all_args, runner_cfg)
        # set the full name of the task 'group.command'
        self.name = 'reference.test'
        self.args = all_args
        self.runner_cfg = runner_cfg
示例#2
0
文件: list.py 项目: vkuusk/skybase.io
 def __init__(self, all_args=None, runner_cfg=None):
     SkyTask.__init__(self, all_args, runner_cfg)
     self.logger = Logger(logging.getLogger(__name__), logging.INFO)
     self.name = 'user.list'
     self.args = all_args
     self.runner_cfg = runner_cfg
     self.username = self.args.get('username')
示例#3
0
文件: list.py 项目: vkuusk/skybase.io
 def __init__(self, all_args=None, runner_cfg=None):
     SkyTask.__init__(self, all_args, runner_cfg)
     self.logger = Logger(logging.getLogger(__name__), logging.INFO)
     self.name = "user.list"
     self.args = all_args
     self.runner_cfg = runner_cfg
     self.username = self.args.get("username")
示例#4
0
文件: test.py 项目: vkuusk/skybase.io
    def __init__(self, all_args=None, runner_cfg=None):

        SkyTask.__init__(self, all_args, runner_cfg)
        # set the full name of the task 'group.command'
        self.name = 'reference.test'
        self.args = all_args
        self.runner_cfg = runner_cfg
示例#5
0
 def __init__(self, all_args=None, runner_cfg=None):
     SkyTask.__init__(self, all_args, runner_cfg)
     self.logger = Logger(logging.getLogger(__name__), logging.INFO)
     self.name = 'planet.describe'
     self.args = all_args
     self.runner_cfg = runner_cfg
     self.planet = None
示例#6
0
    def __init__(self, all_args, runner_cfg):
        SkyTask.__init__(self, all_args, runner_cfg)

        #self.logger = Logger(logging.getLogger(__name__), logging.INFO)

        self.name = 'render.single_template'
        self.args = all_args
        self.runner_cfg = runner_cfg
示例#7
0
    def __init__(self, all_args, runner_cfg):
        SkyTask.__init__(self, all_args, runner_cfg)

        #self.logger = Logger(logging.getLogger(__name__), logging.INFO)

        self.name = 'render.full_standard'
        self.args = all_args
        self.runner_cfg = runner_cfg
示例#8
0
 def __init__(self, all_args=None, runner_cfg=None):
     SkyTask.__init__(self, all_args, runner_cfg)
     self.logger = Logger(logging.getLogger(__name__), logging.INFO)
     self.name = 'service.delete_stacks_state'
     self.args = all_args
     self.runner_cfg = runner_cfg
     self.planet = None
     self.runtime = SkyRuntime(apply=all_args.get('apply', False))
示例#9
0
    def __init__(self, all_args, runner_cfg):
        SkyTask.__init__(self, all_args, runner_cfg)

        #self.logger = Logger(logging.getLogger(__name__), logging.INFO)

        self.name = 'render.single_template'
        self.args = all_args
        self.runner_cfg = runner_cfg
示例#10
0
    def __init__(self, all_args, runner_cfg):
        SkyTask.__init__(self, all_args, runner_cfg)

        #self.logger = Logger(logging.getLogger(__name__), logging.INFO)

        self.name = 'render.full_standard'
        self.args = all_args
        self.runner_cfg = runner_cfg
示例#11
0
    def __init__(self, all_args=None, runner_cfg=None):
        SkyTask.__init__(self, all_args, runner_cfg)
        self.logger = Logger(logging.getLogger(__name__), logging.INFO)
        self.name = 'service.record_state'
        self.args = all_args
        self.runner_cfg = runner_cfg

        self.planet = None
        self.stacks = self.args['stacks']
示例#12
0
    def __init__(self, all_args=None, runner_cfg=None):
        SkyTask.__init__(self, all_args, runner_cfg)
        self.logger = Logger(logging.getLogger(__name__), logging.INFO)
        self.name = 'service.record_state'
        self.args = all_args
        self.runner_cfg = runner_cfg

        self.planet = None
        self.stacks = self.args['stacks']
示例#13
0
    def __init__(self, all_args=None, runner_cfg=None):
        SkyTask.__init__(self, all_args, runner_cfg)
        self.logger = Logger(logging.getLogger(__name__), logging.INFO)
        self.name = 'user.delete'
        self.args = all_args
        self.runner_cfg = runner_cfg

        self.apply = self.args.get('apply')
        self.username = self.args.get('username')
示例#14
0
文件: read.py 项目: vkuusk/skybase.io
 def __init__(self, all_args=None, runner_cfg=None):
     SkyTask.__init__(self, all_args, runner_cfg)
     self.logger = Logger(logging.getLogger(__name__), logging.INFO)
     self.name = 'state.read'
     self.args = all_args
     self.runner_cfg = runner_cfg
     self.mode = self.args.get('exec_mode')
     self.format = self.args.get('format')
     self.id = self.args.get('skybase_id')
示例#15
0
    def __init__(self, all_args=None, runner_cfg=None):
        SkyTask.__init__(self, all_args, runner_cfg)
        self.logger = Logger(logging.getLogger(__name__), logging.INFO)
        self.name = 'user.update'
        self.args = all_args
        self.runner_cfg = runner_cfg

        self.apply = self.args.get('apply')
        self.username = self.args.get('username')
        self.role = self.args.get('role')
        self.email = self.args.get('email')
示例#16
0
    def __init__(self, all_args=None, runner_cfg=None):
        SkyTask.__init__(self, all_args, runner_cfg)
        self.logger = Logger(logging.getLogger(__name__), logging.INFO)
        self.name = 'user.reset_secret'
        self.args = all_args
        self.runner_cfg = runner_cfg
        self.apply = self.args.get('apply')

        # initialize command options as attributes
        self.username = self.args.get('username')
        # if --secret not provide, generate a new one
        self.secret = self.args.get('secret')
示例#17
0
文件: add.py 项目: vkuusk/skybase.io
    def __init__(self, all_args=None, runner_cfg=None):
        SkyTask.__init__(self, all_args, runner_cfg)
        self.logger = Logger(logging.getLogger(__name__), logging.INFO)
        self.name = 'user.add'
        self.args = all_args
        self.runner_cfg = runner_cfg

        self.apply = self.args.get('apply')
        self.username = self.args.get('username')
        self.role = self.args.get('role')
        self.email = self.args.get('email')
        self.secret = self.args.get('secret')
示例#18
0
    def __init__(self, all_args=None, runner_cfg=None):
        SkyTask.__init__(self, all_args, runner_cfg)
        self.logger = Logger(logging.getLogger(__name__), logging.INFO)
        self.name = 'service.delete_stacks'
        self.args = all_args
        self.runner_cfg = runner_cfg
        self.planet = None

        # create runtime object with command options
        self.runtime = SkyRuntime(tag=all_args.get('tag'),
                                  apply=all_args.get('apply', False))

        # initialize stack deletion process drivers
        self.stack_deletion_list = []
        self.stack_deletion_info = dict()
示例#19
0
    def __init__(self, all_args=None, runner_cfg=None):
        SkyTask.__init__(self, all_args, runner_cfg)
        self.logger = Logger(logging.getLogger(__name__), logging.INFO)
        self.name = 'service.deploy'
        self.args = all_args
        self.runner_cfg = runner_cfg

        # required attributes derived from command arguments
        self.planet = None
        self.service = None

        # create runtime object with command options
        self.runtime = SkyRuntime(tag=all_args.get('tag'),
                                  apply=all_args.get('apply', False))

        self.system = SkySystem()
示例#20
0
    def __init__(self, all_args=None, runner_cfg=None):
        SkyTask.__init__(self, all_args, runner_cfg)
        self.logger = Logger(logging.getLogger(__name__), logging.INFO)
        self.name = 'service.delete_stacks'
        self.args = all_args
        self.runner_cfg = runner_cfg
        self.planet = None

        # create runtime object with command options
        self.runtime = SkyRuntime(
            tag=all_args.get('tag'),
            apply=all_args.get('apply', False))

        # initialize stack deletion process drivers
        self.stack_deletion_list = []
        self.stack_deletion_info = dict()
示例#21
0
    def __init__(self, all_args=None, runner_cfg=None):
        SkyTask.__init__(self, all_args, runner_cfg)
        self.logger = Logger(logging.getLogger(__name__), logging.INFO)
        self.name = 'service.deploy'
        self.args = all_args
        self.runner_cfg = runner_cfg

        # required attributes derived from command arguments
        self.planet = None
        self.service = None

        # create runtime object with command options
        self.runtime = SkyRuntime(
            tag=all_args.get('tag'),
            apply=all_args.get('apply', False))

        self.system = SkySystem()
示例#22
0
    def __init__(self, all_args, runner_cfg):
        SkyTask.__init__(self, all_args, runner_cfg)
        self.logger = Logger(logging.getLogger(__name__), logging.INFO)
        self.name = 'pack.submit'
        self.args = all_args
        self.runner_cfg = runner_cfg
        self.aws_access_key_id = None
        self.aws_secret_access_key = None

        if self.args['base_dir']:
            self.base_dir = self.args['base_dir']
            if self.base_dir.split('/')[-1] is not 'skybase':
                self.base_dir = os.path.join(self.base_dir, 'skybase')
        else:
            self.tdir = tempfile.mkdtemp()
            self.base_dir = os.path.join(self.tdir, 'skybase')
        self.tmp_dir = os.path.join(self.base_dir, 'tmp')
        if not os.path.exists(self.tmp_dir):
            os.makedirs(self.tmp_dir)
示例#23
0
    def __init__(self, all_args=None, runner_cfg=None):
        SkyTask.__init__(self, all_args, runner_cfg)
        self.logger = Logger(logging.getLogger(__name__), logging.INFO)
        self.name = "service.update"
        self.args = all_args
        self.runner_cfg = runner_cfg

        # required attributes derived from command arguments
        self.mode = self.args.get("exec_mode", False)
        self.runtime = SkyRuntime(apply=self.args.get("apply", False))
        self.system = SkySystem()
        self.chef_type = None

        self.id = self.args.get("skybase_id")
        self.target_service = None
        self.target_planet = None

        self.source_artiball = self.args.get("source_artiball")
        self.source_service = None

        self.planet_name = self.args.get("planet_name")
        self.planet = None

        self.update_plan = self.args.get("update_plan")
示例#24
0
    def __init__(self, all_args=None, runner_cfg=None):
        SkyTask.__init__(self, all_args, runner_cfg)
        self.logger = Logger(logging.getLogger(__name__), logging.INFO)
        self.name = 'service.update'
        self.args = all_args
        self.runner_cfg = runner_cfg

        # required attributes derived from command arguments
        self.mode = self.args.get('exec_mode', False)
        self.runtime = SkyRuntime(apply=self.args.get('apply', False))
        self.system = SkySystem()
        self.chef_type = None

        self.id = self.args.get('skybase_id')
        self.target_service = None
        self.target_planet = None

        self.source_artiball = self.args.get('source_artiball')
        self.source_service = None

        self.planet_name = self.args.get('planet_name')
        self.planet = None

        self.update_plan = self.args.get('update_plan')
示例#25
0
 def __init__(self, all_args=None, runner_cfg=None):
     SkyTask.__init__(self, all_args, runner_cfg)
     self.logger = Logger(logging.getLogger(__name__), logging.INFO)
     self.name = 'service.get_ips'
     self.args = all_args
     self.runner_cfg = runner_cfg
示例#26
0
 def __init__(self, all_args, runner_cfg):
     SkyTask.__init__(self, all_args, runner_cfg)
     self.logger = Logger(logging.getLogger(__name__), logging.INFO)
     self.name = "pack.upload"
     self.args = all_args
     self.runner_cfg = runner_cfg
示例#27
0
 def __init__(self, all_args=None, runner_cfg=None):
     SkyTask.__init__(self, all_args, runner_cfg)
     self.logger = Logger(logging.getLogger(__name__), logging.WARNING)
     self.name = 'pack.create'
     self.args = all_args
     self.runner_cfg = runner_cfg
示例#28
0
 def __init__(self, all_args=None, runner_cfg=None):
     SkyTask.__init__(self, all_args, runner_cfg)
     self.logger = Logger(logging.getLogger(__name__))
     self.name = 'chef.delete_node'
     self.args = all_args
     self.runner_cfg = runner_cfg
示例#29
0
 def __init__(self, all_args=None, runner_cfg=None):
     SkyTask.__init__(self, all_args, runner_cfg)
     self.logger = Logger(logging.getLogger(__name__))
     self.name = 'chef.delete_node'
     self.args = all_args
     self.runner_cfg = runner_cfg
示例#30
0
 def __init__(self, all_args, runner_cfg):
     SkyTask.__init__(self, all_args, runner_cfg)
     self.logger = Logger(logging.getLogger(__name__), logging.INFO)
     self.name = 'pack.upload'
     self.args = all_args
     self.runner_cfg = runner_cfg
示例#31
0
 def __init__(self, all_args=None, runner_cfg=None):
     SkyTask.__init__(self, all_args, runner_cfg)
     self.logger = Logger(logging.getLogger(__name__), logging.INFO)
     self.name = 'route.ping'
     self.args = all_args
     self.runner_cfg = runner_cfg
示例#32
0
 def __init__(self, all_args=None, runner_cfg=None):
     SkyTask.__init__(self, all_args, runner_cfg)
     self.logger = Logger(logging.getLogger(__name__), logging.WARNING)
     self.name = 'pack.create'
     self.args = all_args
     self.runner_cfg = runner_cfg
示例#33
0
 def __init__(self, all_args=None, runner_cfg=None):
     SkyTask.__init__(self, all_args, runner_cfg)
     self.logger = Logger(logging.getLogger(__name__), logging.INFO)
     self.name = 'chef.update_cookbooks'
     self.args = all_args
     self.runner_cfg = runner_cfg