Sha256: fd509de84145d28d0c8ed81ab82f5f5773355046284c2532d9e6a8209043ed26
Contents?: true
Size: 763 Bytes
Versions: 3
Compression:
Stored size: 763 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 'octokit' Bundler.with_clean_env do run "bundle install --without production" end directory 'docs' add_omniauth :github, "user", "Octokit" gsub_file( 'app/models/user.rb', /Octokit.*/, "Octokit::Client.new(access_token: github.accesstoken)" ) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems