Package starcluster :: Module cli
[hide private]
[frames] | no frames]

Module cli

source code

starcluster [global-opts] action [action-opts] [<action-args> ...]


Version: 0.91

Author: Justin Riley <justin.t.riley@gmail.com>

Classes [hide private]
  CmdBase
  CmdStart
start [options] <cluster_tag>
  CmdStop
stop [options] <cluster>
  CmdSshMaster
sshmaster [options] <cluster>
  CmdSshNode
sshnode <cluster> <node>
  CmdSshInstance
sshintance [options] <instance-id>
  CmdListClusters
listclusters
  CmdCreateImage
createimage [options] <instance-id> <image_name> <bucket>
  CmdCreateVolume
createvolume [options] <volume_size> <volume_zone>
  CmdListZones
listzones
  CmdListImages
listimages [options]
  CmdListBuckets
listbuckets
  CmdShowImage
showimage <image_id>
  CmdShowBucket
showbucket <bucket>
  CmdRemoveVolume
removevolume [options] <volume_id>
  CmdRemoveImage
removeami [options] <imageid>
  CmdListInstances
listinstances [options]
  CmdListSpots
listspots
  CmdShowConsole
showconsole <instance-id>
  CmdListVolumes
listvolumes
  CmdListPublic
listpublic
  CmdRunPlugin
runplugin <plugin_name> <cluster_tag>
  CmdSpotHistory
spothistory [options] <instance_type>
  CmdShell
shell
  CmdHelp
help
Functions [hide private]
 
get_description() source code
 
parse_subcommands(gparser, subcmds)
Parse given global arguments, find subcommand from given list of subcommand objects, parse local arguments and return a tuple of global options, selected command object, command options, and command arguments.
source code
 
main() source code
 
test() source code
Variables [hide private]
  __description__ = '\nStarCluster - (http://web.mit.edu/starclu...
  __moredoc__ = '\nEach command consists of a class, which has t...
  __package__ = 'starcluster'
Function Details [hide private]

parse_subcommands(gparser, subcmds)

source code 

Parse given global arguments, find subcommand from given list of subcommand objects, parse local arguments and return a tuple of global options, selected command object, command options, and command arguments. Call execute() on the command object to run. The command object has members 'gopts' and 'opts' set for global and command options respectively, you don't need to call execute with those but you could if you wanted to.


Variables Details [hide private]

__description__

Value:
'''
StarCluster - (http://web.mit.edu/starcluster)
Software Tools for Academics and Researchers (STAR)
Please submit bug reports to starcluster@mit.edu
'''

__moredoc__

Value:
'''
Each command consists of a class, which has the following properties:

- Must have a class member \'names\' which is a list of the names for \
the command;

- Can optionally have a addopts(self, parser) method which adds option\
s to the
...