예제 #1
0
def printassets(args):
    config = Config(args)
    ctx = config_context.ConfigContext(config)
    for w in config.cloud_workstations:
        workstation = cws.Cws(ctx, w.name)
        print("Workstation", workstation.unique_name())
        print("  State", workstation.state())
        snapshots = workstation.snapshot_names()
        for i, volume in enumerate(workstation.volumes()):
            print("  Volume", volume.unique_name())
            for snapshot in snapshots[i]:
                print("    Snapshot", snapshot)
예제 #2
0
def tidysnapshots(args):
    ctx = config_context.ConfigContext(Config(args))
    workstation = cws.Cws(ctx, args.name)
    workstation.tidy_snapshots()
예제 #3
0
def powerdown(args):
    ctx = config_context.ConfigContext(Config(args))
    workstation = cws.Cws(ctx, args.name)
    workstation.powerdown()
예제 #4
0
def rehydrate(args):
    ctx = config_context.ConfigContext(Config(args))
    workstation = cws.Cws(ctx, args.name)
    workstation.rehydrate()
예제 #5
0
def dessicate(args):
    ctx = config_context.ConfigContext(Config(args))
    workstation = cws.Cws(ctx, args.name)
    workstation.dessicate()
예제 #6
0
def stop(args):
    ctx = config_context.ConfigContext(Config(args))
    workstation = cws.Cws(ctx, args.name)
    workstation.stop()