diff options
author | elijah <elijah@riseup.net> | 2012-10-09 00:01:55 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2012-10-09 00:01:55 -0700 |
commit | 578ac2f5dc7432317d7a022bed9d869ab89ee45c (patch) | |
tree | 3cf8d27c2e8059df33e33e9c39146e0b3db29599 /cli/lib/leap_cli/commands/deploy.rb | |
parent | 105fe22c2de06310e48c4827b47d38d18750ed32 (diff) | |
download | leap_cli-578ac2f5dc7432317d7a022bed9d869ab89ee45c.tar.gz leap_cli-578ac2f5dc7432317d7a022bed9d869ab89ee45c.tar.bz2 |
initial code commit
Diffstat (limited to 'cli/lib/leap_cli/commands/deploy.rb')
-rw-r--r-- | cli/lib/leap_cli/commands/deploy.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/cli/lib/leap_cli/commands/deploy.rb b/cli/lib/leap_cli/commands/deploy.rb new file mode 100644 index 0000000..3694a38 --- /dev/null +++ b/cli/lib/leap_cli/commands/deploy.rb @@ -0,0 +1,20 @@ +module LeapCli + module Commands + + desc 'Apply recipes to a node or set of nodes' + long_desc 'The node filter can be the name of a node, service, or tag.' + arg_name '<node filter>' + command :deploy do |c| + c.action do |global_options,options,args| + nodes = ConfigManager.filter(args) + say "Deploying to these nodes: #{nodes.keys.join(', ')}" + if agree "Continue? " + say "deploy not yet implemented" + else + say "OK. Bye." + end + end + end + + end +end
\ No newline at end of file |