Sha256: d7579f1304a906e90e5c3b5076fdc6ceddee28bf0b38eac2d78d6834bc95bdd8

Contents?: true

Size: 351 Bytes

Versions: 10

Compression:

Stored size: 351 Bytes

Contents

module PolyglotIos
  module IO
    class Config

      CONFIG_FILE_PATH = "#{Dir.pwd}/polyglot.yml".freeze

      class << self
        def write(data)
          File.open(CONFIG_FILE_PATH, 'w') { |file| YAML.dump(data, file) }
        end

        def read
          YAML.load_file(CONFIG_FILE_PATH)
        end
      end
      
    end
  end
end
  

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ios_polyglot_cli-2.5.1 lib/ios_polyglot_cli/io/config.rb
ios_polyglot_cli-2.5.0 lib/ios_polyglot_cli/io/config.rb
ios_polyglot_cli-2.4.0 lib/ios_polyglot_cli/io/config.rb
ios_polyglot_cli-2.3.0 lib/ios_polyglot_cli/io/config.rb
ios_polyglot_cli-2.2.2 lib/ios_polyglot_cli/io/config.rb
ios_polyglot_cli-2.2.1 lib/ios_polyglot_cli/io/config.rb
ios_polyglot_cli-2.2.0 lib/ios_polyglot_cli/io/config.rb
ios_polyglot_cli-2.1.1 lib/ios_polyglot_cli/io/config.rb
ios_polyglot_cli-2.1.0 lib/ios_polyglot_cli/io/config.rb
ios_polyglot_cli-2.0.1 lib/ios_polyglot_cli/io/config.rb