summaryrefslogtreecommitdiff
path: root/lib/leap_cli/commands/node_init.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-06-21 17:38:00 -0700
committerelijah <elijah@riseup.net>2016-06-21 17:38:00 -0700
commit7818abd6a89a882cabb3d2a14a572308d9e959ff (patch)
tree89927201e4406af2334c4ef97cbe58750426ef3f /lib/leap_cli/commands/node_init.rb
parent3df7a57d866cf1e6eda9bb9e3fe19c7387ec6c1d (diff)
minor ruby linting
Diffstat (limited to 'lib/leap_cli/commands/node_init.rb')
-rw-r--r--lib/leap_cli/commands/node_init.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/leap_cli/commands/node_init.rb b/lib/leap_cli/commands/node_init.rb
index 33f6288d..9698a789 100644
--- a/lib/leap_cli/commands/node_init.rb
+++ b/lib/leap_cli/commands/node_init.rb
@@ -6,14 +6,14 @@
module LeapCli; module Commands
desc 'Node management'
- command :node do |node|
- node.desc 'Bootstraps a node or nodes, setting up SSH keys and installing prerequisite packages'
- node.long_desc "This command prepares a server to be used with the LEAP Platform by saving the server's SSH host key, " +
+ command :node do |cmd|
+ cmd.desc 'Bootstraps a node or nodes, setting up SSH keys and installing prerequisite packages'
+ cmd.long_desc "This command prepares a server to be used with the LEAP Platform by saving the server's SSH host key, " +
"copying the authorized_keys file, installing packages that are required for deploying, and registering important facts. " +
"Node init must be run before deploying to a server, and the server must be running and available via the network. " +
"This command only needs to be run once, but there is no harm in running it multiple times."
- node.arg_name 'FILTER'
- node.command :init do |init|
+ cmd.arg_name 'FILTER'
+ cmd.command :init do |init|
init.switch 'echo', :desc => 'If set, passwords are visible as you type them (default is hidden)', :negatable => false
init.flag :port, :desc => 'Override the default SSH port.', :arg_name => 'PORT'
init.flag :ip, :desc => 'Override the default SSH IP address.', :arg_name => 'IPADDRESS'