class FlightManifest::Base
Public Instance Methods
dump()
click to toggle source
# File lib/flight_manifest/base.rb, line 43 def dump YAML.dump to_h.tap { |h| h.delete(:base) } end
to_h()
click to toggle source
Calls superclass method
# File lib/flight_manifest/base.rb, line 47 def to_h super().map { |k,v| [k.to_sym, v] } .to_h .tap do |hash| hash[:domain] = hash[:domain].to_h [:groups, :nodes].each { |s| hash[s] = hash[s].map(&:to_h) } hash[:base] = hash[:base].to_s end end
write()
click to toggle source
# File lib/flight_manifest/base.rb, line 39 def write File.write base.join(FlightManifest::FILENAME), dump end