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
mpatch-1.3.0 lib/mpatch/yml.rb
mpatch-1.2.0 lib/mpatch/yml.rb
mpatch-1.1.0 lib/mpatch/yml.rb
mpatch-1.0.2 lib/mpatch/yml.rb
mpatch-1.0.1 lib/mpatch/yml.rb
mpatch-1.0.0 lib/mpatch/yml.rb
procemon-0.8.1 lib/procemon/mpatch/yml.rb
procemon-0.8.0 lib/procemon/mpatch/yml.rb
procemon-0.7.0 lib/procemon/mpatch/yml.rb
procemon-0.6.3 lib/procemon/mpatch/yml.rb
procemon-0.6.2 lib/procemon/mpatch/yml.rb
procemon-0.6.1 lib/procemon/mpatch/yml.rb
procemon-0.5.0 lib/procemon/mpatch/yml.rb
procemon-0.4.5 lib/procemon/mpatch/yml.rb
procemon-0.4.4 lib/procemon/mpatch/yml.rb
procemon-0.4.3 lib/procemon/mpatch/yml.rb
procemon-0.4.2 lib/procemon/mpatch/yml.rb
procemon-0.4.1 lib/procemon/mpatch/yml.rb
procemon-0.4.0 lib/procemon/mpatch/yml.rb
procemon-0.3.4 lib/procemon/mpatch/yml.rb