Module: Frankie::Loader
- Defined in:
- lib/frankie.rb
Instance Method Summary collapse
Instance Method Details
#load_facebook_config(file, env = :development) ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/frankie.rb', line 18 def load_facebook_config(file, env=:development) if File.exist?(file) yaml = YAML.load_file(file)[env.to_s] ENV['FACEBOOK_API_KEY'] = yaml['api_key'] ENV['FACEBOOK_SECRET_KEY'] = yaml['secret_key'] ENV['FACEBOOKER_RELATIVE_URL_ROOT'] = yaml['canvas_page_name'] end end |