Class: IronBank::Generators::InstallGenerator

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

Overview

Allow us to run ‘rails generate iron_bank:install`

Instance Method Summary collapse

Instance Method Details

#create_iron_bank_initializerObject



11
12
13
# File 'lib/generators/iron_bank/install/install_generator.rb', line 11

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

#display_readme_in_terminalObject



15
16
17
# File 'lib/generators/iron_bank/install/install_generator.rb', line 15

def display_readme_in_terminal
  readme "README"
end