Sha256: f220d1f8f08e211c60d0e23cff2e40116f643d1b63a7920ed7a8bc4cb33ad7ae

Contents?: true

Size: 571 Bytes

Versions: 6

Compression:

Stored size: 571 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 pry gems", :green
        Bundler.with_unbundled_env do
          run "bundle add pry pry-rails"
        end
      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

6 entries across 6 versions & 1 rubygems

Version Path
boring_generators-0.15.0 lib/generators/boring/pry/install/install_generator.rb
boring_generators-0.14.0 lib/generators/boring/pry/install/install_generator.rb
boring_generators-0.13.0 lib/generators/boring/pry/install/install_generator.rb
boring_generators-0.12.0 lib/generators/boring/pry/install/install_generator.rb
boring_generators-0.11.0 lib/generators/boring/pry/install/install_generator.rb
boring_generators-0.10.0 lib/generators/boring/pry/install/install_generator.rb