Class: Jets::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Jets::Generators::InstallGenerator
- Defined in:
- lib/generators/jets/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#modify_gemfile ⇒ Object
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_version ⇒ Object
13 14 15 |
# File 'lib/generators/jets/install/install_generator.rb', line 13 def set_rails_version template ".rails-version", "./.rails-version" end |