Class: Pec::Command::Config

Inherits:
Base
  • Object
show all
Defined in:
lib/pec/command/config.rb

Class Method Summary collapse

Methods inherited from Base

print_exception, task

Class Method Details

.run(host_name, options) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/pec/command/config.rb', line 3

def self.run(host_name, options)
  puts YAML.dump(
    YAML.load_file("Pec.yaml").to_hash.reject {|c| c[0].to_s.match(/^_/)}
  )
  rescue => e
    print_exception(e)
end