Class: Boring::Pry::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Boring::Pry::InstallGenerator
- Defined in:
- lib/generators/boring/pry/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_bullet_gem ⇒ Object
9 10 11 12 13 14 |
# File 'lib/generators/boring/pry/install/install_generator.rb', line 9 def add_bullet_gem say "Adding pry gems", :green Bundler.with_unbundled_env do run "bundle add pry pry-rails" end end |
#add_pryrc_configuration ⇒ Object
16 17 18 19 20 21 |
# File 'lib/generators/boring/pry/install/install_generator.rb', line 16 def add_pryrc_configuration return if [:skip_configuration] say "Copying pryrc configuration", :green template("pryrc", ".pryrc") end |