Sha256: afc9c9561de7faa74a8da08281fd2c41e2803832c0eebbb6371d37fc9d4aa66a

Contents?: true

Size: 350 Bytes

Versions: 13

Compression:

Stored size: 350 Bytes

Contents

module TryApi
  class ConfigParser
    class << self

      def read
        if File.exists?("#{ Rails.root }/config/try_api.yml")
          hash = YAML.load_file("#{ Rails.root }/config/try_api.yml")
          TryApi::Project.parse hash.with_indifferent_access
        else
          raise ConfigFileNotFound
        end
      end

    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
try_api-0.0.18 app/models/try_api/config_parser.rb
try_api-0.0.17 app/models/try_api/config_parser.rb
try_api-0.0.16 app/models/try_api/config_parser.rb
try_api-0.0.15 app/models/try_api/config_parser.rb
try_api-0.0.14 app/models/try_api/config_parser.rb
try_api-0.0.13 app/models/try_api/config_parser.rb
try_api-0.0.12 app/models/try_api/config_parser.rb
try_api-0.0.11 app/models/try_api/config_parser.rb
try_api-0.0.10 app/models/try_api/config_parser.rb
try_api-0.0.9 app/models/try_api/config_parser.rb
try_api-0.0.8 app/models/try_api/config_parser.rb
try_api-0.0.7 app/models/try_api/config_parser.rb
try_api-0.0.6 app/models/try_api/config_parser.rb