Class: IV::CLI::Command::Nodes

Inherits:
IV::CLI::Command show all
Defined in:
lib/iv-cli/commands/nodes.rb

Instance Attribute Summary

Attributes inherited from IV::CLI::Command

#iv_config

Instance Method Summary collapse

Methods inherited from IV::CLI::Command

invalid_command?, run_command

Methods included from Helpers::SubclassRegistration

included

Methods included from Helpers::Errors

included

Instance Method Details

#run(args, options = {}) ⇒ Object



15
16
17
18
19
20
21
22
23
# File 'lib/iv-cli/commands/nodes.rb', line 15

def run(args, options = {})
  parse_options(args)
  parse_iv_config
  ensure_opscode_config

  @formatter = IV::CLI::Formatter.find(config[:formatter]).new({:columns => [:status,:name,:ip,:os,:org]})

  stream_converge_status
end