Sha256: 3adaf734f05666a592f20b385ebce52c30dfe54a1c6280d39b2a4d345dd130f7

Contents?: true

Size: 495 Bytes

Versions: 9

Compression:

Stored size: 495 Bytes

Contents

require 'generators/happy_seed/happy_seed_generator'

module HappySeed
  module Generators
    class FacebookGenerator < HappySeedGenerator
      source_root File.expand_path('../templates', __FILE__)

      def install_facebook
        require_omniauth

        gem 'omniauth-facebook'

        Bundler.with_clean_env do
          run "bundle install"
        end

        directory 'docs'

        add_omniauth :facebook, "offline_access,read_insights,manage_pages"
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
happy_seed-0.0.11 lib/generators/happy_seed/facebook/facebook_generator.rb
happy_seed-0.0.10 lib/generators/happy_seed/facebook/facebook_generator.rb
happy_seed-0.0.9 lib/generators/happy_seed/facebook/facebook_generator.rb
happy_seed-0.0.8 lib/generators/happy_seed/facebook/facebook_generator.rb
happy_seed-0.0.7 lib/generators/happy_seed/facebook/facebook_generator.rb
happy_seed-0.0.6 lib/generators/happy_seed/facebook/facebook_generator.rb
happy_seed-0.0.5 lib/generators/happy_seed/facebook/facebook_generator.rb
happy_seed-0.0.4 lib/generators/happy_seed/facebook/facebook_generator.rb
happy_seed-0.0.3 lib/generators/happy_seed/facebook/facebook_generator.rb