class HappySeed::Generators::JazzHandsGenerator
Public Class Methods
fingerprint()
click to toggle source
# File lib/generators/happy_seed/jazz_hands/jazz_hands_generator.rb, line 8 def self.fingerprint gem_available? 'jazz_hands' end
Public Instance Methods
install_jazz_hands()
click to toggle source
# File lib/generators/happy_seed/jazz_hands/jazz_hands_generator.rb, line 12 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