Beispiel #1
0
 def call(self, current, opts, args):
     target = paths.change(current, args, opts)
     target.add(raw=opts.raw,
                populate=opts.populate,
                default=opts.default,
                test=opts.test,
                flavor=opts.flavor)
Beispiel #2
0
    def call(self, current, opts, args):
        if len(args) < 2:
            raise Exception(
                "You must provide 2 arguments: a target and the path to a local file"
            )

        target = paths.change(current, args, opts)
        target.set_content(args[1])
Beispiel #3
0
 def call(self, current, opts, args):
     target = paths.change(current, args, opts)
     target.add(raw = opts.raw, populate = opts.populate, default = opts.default, test = opts.test, flavor = opts.flavor)
Beispiel #4
0
 def call(self, current, opts, args):
     target = paths.change(current, args, opts)
     target.live_install(opts)
Beispiel #5
0
 def call(self, current, opts, args):
     target = paths.change(current, args, opts)
     target.import_entity(opts)
Beispiel #6
0
 def call(self, current, opts, args):
     target = paths.change(current, args, opts)
     target.unpublish(opts)
Beispiel #7
0
 def call(self, current, opts, args):
     target = paths.change(current, args, opts)
     target.poweroff()
Beispiel #8
0
    def call(self, current, opts, args):
        if len(args) < 2:
            raise Exception("You must provide 2 arguments: a target and the path to a local file")

        target = paths.change(current, args, opts)
        target.set_content(args[1])
Beispiel #9
0
 def call(self, current, opts, args):
     target = paths.change(current, args, opts)
     target.unpublish(opts)
Beispiel #10
0
 def call(self, current, opts, args):
     target = paths.change(current, args, opts)
     target.show_properties()
Beispiel #11
0
 def call(self, current, opts, args):
     target = paths.change(current, args, opts)
     target.poweroff()
Beispiel #12
0
 def call(self, current, opts, args):
     target = paths.change(current, args, opts)
     target.resume()
Beispiel #13
0
 def call(self, current, opts, args):
     target = paths.change(current, args, opts)
     if len(args) > 1:
         target.show_content(args[1])
     else:
         target.show_content()
Beispiel #14
0
    def call(self, current, opts, args):
        target = paths.change(current, args, opts)

        if opts.force or (prompt.confirm(prompt="Delete target?", resp=False)):
            target.delete()
Beispiel #15
0
    def call(self, current, opts, args):
        target = paths.change(current, args, opts)

        if opts.force or (prompt.confirm(prompt = "Delete target?", resp = False)) :
            target.delete()
Beispiel #16
0
 def call(self, current, opts, args):
     target = paths.change(current, args, opts)
     target.purchase(opts)
Beispiel #17
0
 def call(self, current, opts, args):
     target = paths.change(current, args, opts)
     if len(args) > 1:
         target.show_content(args[1])
     else:
         target.show_content()
Beispiel #18
0
 def call(self, current, opts, args):
     target = paths.change(current, args, opts)
     target.import_entity(opts)
Beispiel #19
0
 def call(self, current, opts, args):
     target = paths.change(current, args, opts)
     target.resume()
Beispiel #20
0
 def call(self, current, opts, args):
     target = paths.change(current, args, opts)
     target.store_push(opts)
Beispiel #21
0
 def call(self, current, opts, args):
     target = paths.change(current, args, opts)
     target.show_properties()
Beispiel #22
0
 def call(self, current, opts, args):
     target = paths.change(current, args, opts)
     target.live_install(opts)
Beispiel #23
0
 def call(self, current, opts, args):
     target = paths.change(current, args, opts)
     target.purchase(opts)
Beispiel #24
0
 def call(self, current, opts, args):
     target = paths.change(current, args, opts)
     target.show(opts)
Beispiel #25
0
 def call(self, current, opts, args):
     target = paths.change(current, args, opts)
     target.store_push(opts)
Beispiel #26
0
 def call(self, current, opts, args):
     target = paths.change(current, args, opts)
     return target
Beispiel #27
0
 def call(self, current, opts, args):
     target = paths.change(current, args, opts)
     target.show(opts)
Beispiel #28
0
 def call(self, current, opts, args):
     target = paths.change(current, args, opts)
     return target