Class: Inprovise::Cli

Inherits:
Object
  • Object
show all
Extended by:
GLI::App
Defined in:
lib/inprovise/cli/node.rb,
lib/inprovise/cli.rb,
lib/inprovise/cli/group.rb,
lib/inprovise/cli/provision.rb

Overview

CLI provisioning commands for Inprovise

Author

Martin Corino

License

Distributes under the same license as Ruby

Class Method Summary collapse

Class Method Details

.show_target(tgt, details = false) ⇒ Object



98
99
100
101
102
103
# File 'lib/inprovise/cli.rb', line 98

def self.show_target(tgt, details=false)
  $stdout.puts "   #{tgt.to_s}"
  if details
    $stdout.puts "   \t"+JSON.pretty_generate(tgt.config).split("\n").join("\n   \t")
  end
end