Sha256: ff65dfb6e503cc3255747aafb159adbcd48e8829d58aa8d3524775cc994d9818

Contents?: true

Size: 224 Bytes

Versions: 37

Compression:

Stored size: 224 Bytes

Contents

require 'yaml'
module YAML
  def self.save_file(file_path,config_hash)
    File.open(file_path, 'w+') {|f| f.write(config_hash.to_yaml) }
  end

  def self.load_file(file_path)
    YAML.load(File.open(file_path))
  end
end

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
procemon-0.3.3 lib/procemon/mpatch/yml.rb
procemon-0.3.2 lib/procemon/mpatch/yml.rb
procemon-0.3.1 lib/procemon/mpatch/yml.rb
procemon-0.2.0 lib/procemon/mpatch/yml.rb
procemon-0.1.5 lib/procemon/mpatch/yml.rb
procemon-0.1.4 lib/procemon/mpatch/yml.rb
procemon-0.1.3 lib/procemon/mpatch/yml.rb
procemon-0.1.1 lib/procemon/mpatch/yml.rb
procemon-0.0.9 lib/procemon/mpatch/yml.rb
procemon-0.0.8 lib/procemon/mpatch/yml.rb
procemon-0.0.7 lib/procemon/mpatch/yml.rb
procemon-0.0.6 lib/procemon/mpatch/yml.rb
procemon-0.0.5 lib/procemon/mpatch/yml.rb
procemon-0.0.4 lib/procemon/mpatch/yml.rb
procemon-0.0.3 lib/procemon/mpatch/yml.rb
procemon-0.0.2 lib/procemon/mpatch/yml.rb
procemon-0.0.1 lib/procemon/mpatch/yml.rb