Sha256: 1f9c0e5556c3b9123b4653cd3f535da68402806ff0d5fb4d66f4975958b6760f

Contents?: true

Size: 648 Bytes

Versions: 1

Compression:

Stored size: 648 Bytes

Contents

require 'generators/happy_seed/omniauth/omniauth_generator'

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

      def self.fingerprint
        gem_available? 'omniauth-github'
      end

      def install_github
        return if already_installed

        require_generator OmniauthGenerator

        gem 'omniauth-github'
        gem 'github_api'

        Bundler.with_clean_env do
          run "bundle install --without production"
        end

        directory 'docs'

        add_omniauth :github, "user", "Github"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
happy_seed-0.0.17 lib/generators/happy_seed/github/github_generator.rb