class Pennyworth::Command
Public Class Methods
new()
click to toggle source
# File lib/pennyworth/commands/command.rb, line 21 def initialize Cheetah.default_options = { :logger => logger } end
Public Instance Methods
config()
click to toggle source
# File lib/pennyworth/commands/command.rb, line 25 def config @config ||= YAML.load_file(File.dirname(__FILE__) + "/../../../config/setup.yml") end
logger()
click to toggle source
# File lib/pennyworth/commands/command.rb, line 29 def logger @logger ||= Logger.new("/tmp/pennyworth.log") end
Private Instance Methods
print_ssh_config(vagrant, vm_name)
click to toggle source
# File lib/pennyworth/commands/command.rb, line 35 def print_ssh_config(vagrant, vm_name) config = vagrant.ssh_config(vm_name) config.each_pair do |host, host_config| puts "#{host}\t#{host_config["HostName"]}" end end