Class: Boring::Pry::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#add_bullet_gemObject



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_configurationObject



16
17
18
19
20
21
# File 'lib/generators/boring/pry/install/install_generator.rb', line 16

def add_pryrc_configuration
  return if options[:skip_configuration]

  say "Copying pryrc configuration", :green
  template("pryrc", ".pryrc")
end