Sha256: 784b39a327ef66af2cec572558402b41eb0c2a0cab57d1501350410e9fabcf38

Contents?: true

Size: 476 Bytes

Versions: 36

Compression:

Stored size: 476 Bytes

Contents

# frozen_string_literal: true

require "rails/generators/base"

module IronBank
  module Generators
    # Allow us to run `rails generate iron_bank:install`
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path("templates", __dir__)

      def create_iron_bank_initializer
        copy_file "iron_bank.rb", "config/initializers/iron_bank.rb"
      end

      def display_readme_in_terminal
        readme "README"
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
iron_bank-4.0.2 lib/generators/iron_bank/install/install_generator.rb
iron_bank-4.0.1 lib/generators/iron_bank/install/install_generator.rb
iron_bank-4.0.0 lib/generators/iron_bank/install/install_generator.rb
iron_bank-3.4.0 lib/generators/iron_bank/install/install_generator.rb
iron_bank-3.3.4 lib/generators/iron_bank/install/install_generator.rb
iron_bank-3.3.3 lib/generators/iron_bank/install/install_generator.rb
iron_bank-3.3.2 lib/generators/iron_bank/install/install_generator.rb
iron_bank-3.3.1 lib/generators/iron_bank/install/install_generator.rb
iron_bank-3.3.0 lib/generators/iron_bank/install/install_generator.rb
iron_bank-3.2.0 lib/generators/iron_bank/install/install_generator.rb
iron_bank-3.1.1 lib/generators/iron_bank/install/install_generator.rb
iron_bank-3.1.0 lib/generators/iron_bank/install/install_generator.rb
iron_bank-3.0.3 lib/generators/iron_bank/install/install_generator.rb
iron_bank-3.0.2 lib/generators/iron_bank/install/install_generator.rb
iron_bank-3.0.1 lib/generators/iron_bank/install/install_generator.rb
iron_bank-3.0.0 lib/generators/iron_bank/install/install_generator.rb