PageRenderTime 122ms CodeModel.GetById 60ms app.highlight 2ms RepoModel.GetById 58ms app.codeStats 0ms

/silverlining/commands/activate.py

https://bitbucket.org/ianb/silverlining/
Python | 11 lines | 8 code | 2 blank | 1 comment | 2 complexity | 9a659bfa06c9e08834c448424e6070b7 MD5 | raw file
 1"""Routines to activate instances for specific locations"""
 2from silversupport.shell import ssh
 3from silversupport import appdata
 4
 5
 6def command_activate(config):
 7    if not config.args.node:
 8        config.args.node = appdata.normalize_location(config.args.location)[0]
 9    ssh('www-mgr', config.node_hostname,
10        '/usr/local/share/silverlining/mgr-scripts/activate-instance.py %s %s' %
11        (config.args.location, config.args.instance_name))