Package starcluster :: Package commands :: Module put :: Class CmdPut
[hide private]
[frames] | no frames]

Class CmdPut

source code



put [options] <cluster_tag> [<local_file_or_dir> ...] <remote_destination>

Copy files to a running cluster

Examples:

    # Copy a file or dir to the master as root
    $ starcluster put mycluster /path/to/file/or/dir /path/on/remote/server

    # Copy one or more files or dirs to the master as root
    $ starcluster put mycluster /local/dir /local/file /remote/dir

    # Copy a file or dir to the master as normal user
    $ starcluster put mycluster --user myuser /local/path /remote/path

    # Copy a file or dir to a node (node001 in this example)
    $ starcluster put mycluster --node node001 /local/path /remote/path


This will copy a file or directory to the remote server

Instance Methods [hide private]
 
addopts(self, parser) source code
 
execute(self, args) source code

Inherited from completers.ClusterCompleter (private): _completer

Inherited from base.CmdBase: cancel_command, catch_ctrl_c, warn_experimental

Inherited from base.CmdBase (private): _build_dict, _positive_int

Inherited from optcomplete.CmdComplete: autocomplete

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  names = ['put']

Inherited from base.CmdBase: gopts, gparser, opts, parser, subcmds_map

Inherited from base.CmdBase (private): _cfg, _cm, _ec2, _nm, _s3

Properties [hide private]

Inherited from completers.Completer: completer

Inherited from base.CmdBase: cfg, cluster_manager, cm, comp_words, ec2, goptions_dict, log, nm, node_manager, options_dict, s3, specified_options_dict

Inherited from object: __class__

Method Details [hide private]

addopts(self, parser)

source code 
Overrides: base.CmdBase.addopts