Sha256: eed95a5260dff50e1ae3cd1ebf45bf85e5d9a84af20a03b3e8ea422b16008bc7

Contents?: true

Size: 333 Bytes

Versions: 11

Compression:

Stored size: 333 Bytes

Contents

require 'yaml'

module MPatch

  module Extend

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

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

  end

  require File.join 'mpatch','injector'


end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mpatch-2.12.2 lib/mpatch/yml.rb
mpatch-2.12.1 lib/mpatch/yml.rb
mpatch-2.12.0 lib/mpatch/yml.rb
mpatch-2.11.0 lib/mpatch/yml.rb
mpatch-2.9.0 lib/mpatch/yml.rb
mpatch-2.8.1 lib/mpatch/yml.rb
mpatch-2.8.0 lib/mpatch/yml.rb
mpatch-2.7.0 lib/mpatch/yml.rb
mpatch-2.6.0 lib/mpatch/yml.rb
mpatch-2.5.0 lib/mpatch/yml.rb
mpatch-2.4.0 lib/mpatch/yml.rb