def run(cls, c): if not isinstance(c.input_res, list): msg = 'Dependencies for installation must be list, got {v}.'.format(v=c.input_res) raise exceptions.CommandException(msg) di = DependencyInstaller() di.install(c.input_res) return [True, c.input_res]
def run(cls, c): struct = c.format_deep() if not isinstance(struct, list): msg = 'Dependencies for installation must be list, got {v}.'.format(v=struct) raise exceptions.CommandException(msg) di = DependencyInstaller() di.install(struct) return [True, struct]
def run(cls, comm_type, comm, **kwargs): if comm_type == 'dependencies': struct = comm di = DependencyInstaller() di.install(struct)