Class: Jets::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/jets/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#modify_gemfileObject



17
18
19
20
# File 'lib/generators/jets/install/install_generator.rb', line 17

def modify_gemfile
  prepend_to_file "Gemfile", 'require "bundler/component"'
  prepend_to_file "Gemfile", 'require "bundler/eval_gemfile"'
end

#set_rails_versionObject



13
14
15
# File 'lib/generators/jets/install/install_generator.rb', line 13

def set_rails_version
  template ".rails-version", "./.rails-version"
end