Sha256: d54168009e9e9cc33a82ae27f65d799f44c83e8c6023265e101ddf6bbd9c831d

Contents?: true

Size: 469 Bytes

Versions: 2

Compression:

Stored size: 469 Bytes

Contents

require 'generators/happy_seed/happy_seed_generator'

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

      def install_twitter
        require_omniauth

        gem 'omniauth-twitter'
        gem 'twitter'

        Bundler.with_clean_env do
          run "bundle install"
        end

        add_omniauth :twitter

        directory "docs"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
happy_seed-0.0.11 lib/generators/happy_seed/twitter/twitter_generator.rb
happy_seed-0.0.10 lib/generators/happy_seed/twitter/twitter_generator.rb