Sha256: 4b6227d1b1075b3831bcda1422318eacbc9ace9e9ae3b27e0e1587f04ebbf33c

Contents?: true

Size: 883 Bytes

Versions: 4

Compression:

Stored size: 883 Bytes

Contents

require 'generators/happy_seed/happy_seed_generator'

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

      def self.fingerprint
        gem_available? 'jazz_hands'
      end

      def install_jazz_hands
        return if already_installed

        # gem 'jazz_hands', :github => 'nixme/jazz_hands', :branch => 'bring-your-own-debugger', :groups => [:development, :test]
        gem 'jazz_hands', :github => 'danrabinowitz/jazz_hands', :branch => 'use-newer-version-of-pry', :groups => [:development, :test]

        ruby_major_version = RUBY_VERSION.split('.')[0]

        inside 'config/initializers' do
          copy_file 'jazz_hands.rb'
        end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
happy_seed-0.0.21 lib/generators/happy_seed/jazz_hands/jazz_hands_generator.rb
happy_seed-0.0.19 lib/generators/happy_seed/jazz_hands/jazz_hands_generator.rb
happy_seed-0.0.18 lib/generators/happy_seed/jazz_hands/jazz_hands_generator.rb
happy_seed-0.0.17 lib/generators/happy_seed/jazz_hands/jazz_hands_generator.rb