Method: Pec.load_config
- Defined in:
- lib/pec.rb
.load_config(file_name = nil) ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/pec.rb', line 28 def self.load_config(file_name=nil) file_name ||= 'Pec.yaml' @_configure = [] YAML.load_file(file_name).to_hash.reject {|c| c[0].to_s.match(/^_/)}.each do |host| @_configure << Pec::Configure.new(host) end end |