Sha256: 9b64dc1945914c92f3f9aef85e238cd27aeb251f9ce131a6568967c5e8836795

Contents?: true

Size: 492 Bytes

Versions: 1

Compression:

Stored size: 492 Bytes

Contents

unless defined? RAILS_ROOT
  conf_file = "#{File.dirname($0)}/thumbnailer.yml"
  begin
    config = YAML.load_file(conf_file)
  rescue
    raise "Please create and set thumbnailer.yml"
  end

else
  conf_file = "#{RAILS_ROOT}/config/thumbnailer.yml"
  begin
    config = YAML.load_file(conf_file)
  rescue
    raise "Please create and set config/thumbnailer.yml file"
  end
end

FLICKR_KEY = config['flickr_key']
FLICKR_SECRET = config['flickr_secret']
WEBSNAPR_KEY = config['websnapr_key']

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
thumbnailer-ruby-0.1.0 lib/constants.rb