Sha256: 2a51ca5bc56fb0535f7af5739658464a96bc27393069e27ff0a0ecffbcf712ac
Contents?: true
Size: 710 Bytes
Versions: 7
Compression:
Stored size: 710 Bytes
Contents
# frozen_string_literal: true module Boring module Pry class InstallGenerator < Rails::Generators::Base desc "Adds pry to the application" source_root File.expand_path("templates", __dir__) def add_bullet_gem say "Adding Bullet gem", :green pry_gem_content = <<~RUBY \n # for using pry as Rails console gem "pry" gem "pry-rails" RUBY append_to_file "Gemfile", pry_gem_content run "bundle install" end def add_pryrc_configuration return if options[:skip_configuration] say "Copying pryrc configuration", :green template("pryrc", ".pryrc") end end end end
Version data entries
7 entries across 7 versions & 1 rubygems