class Object
Public Instance Methods
launch(argv = ARGV)
click to toggle source
# File lib/apollon/cli/app.rb, line 9 def launch(argv = ARGV) run(argv) end
print_puppet_table(data, title = '', headings = nil, _base_dir = Apollon::Puppet::PUPPET_DIR)
click to toggle source
# File lib/apollon/cli/cmd/puppet_cmd.rb, line 13 def print_puppet_table(data, title = '', headings = nil, _base_dir = Apollon::Puppet::PUPPET_DIR) rows = data.each_with_index.map do |item, i| [i, item[:name], item[:rel], item[:path]] end puts Terminal::Table.new title: title, headings: headings, rows: rows end