Sha256: e42f2689a7ad8189b6071f829a51f04035bbc113dacaa075b0b52d1a6f7558b3

Contents?: true

Size: 523 Bytes

Versions: 2

Compression:

Stored size: 523 Bytes

Contents

module Bently

  class OmniauthFacebook < RailsRecipe

    homepage 'https://github.com/mkdynamic/omniauth-facebook/blob/master/README.md'

    def initialize
      requirement 'omniauth'
      gem 'omniauth-facebook'
      bundle
      insert './config/initializers/omniauth.rb', omniauth_initializer, :after => "Rails.application.config.middleware.use OmniAuth::Builder do\n"
    end

    protected

    def omniauth_initializer
      "provider :facebook, ENV['FACEBOOK_KEY'], ENV['FACEBOOK_SECRET']"
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bently-1.0.2 lib/bently/recipe/omniauth-facebook.rb
bently-1.0.1 lib/bently/recipe/omniauth-facebook.rb