Class: HappySeed::Generators::JazzHandsGenerator
- Inherits:
-
HappySeedGenerator
- Object
- Rails::Generators::Base
- HappySeedGenerator
- HappySeed::Generators::JazzHandsGenerator
- Defined in:
- lib/generators/happy_seed/jazz_hands/jazz_hands_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.fingerprint ⇒ Object
8 9 10 |
# File 'lib/generators/happy_seed/jazz_hands/jazz_hands_generator.rb', line 8 def self.fingerprint gem_available? 'jazz_hands' end |
Instance Method Details
#install_jazz_hands ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# 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 |