Class: MailyHerald::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_initializerObject



8
9
10
# File 'lib/generators/maily_herald/install_generator.rb', line 8

def copy_initializer
  template "maily_herald.rb", "config/initializers/maily_herald.rb"
end

#copy_localeObject



12
13
14
# File 'lib/generators/maily_herald/install_generator.rb', line 12

def copy_locale
  copy_file "../../../config/locales/en.yml", "config/locales/maily_herald.en.yml"
end

#show_readmeObject



16
17
18
# File 'lib/generators/maily_herald/install_generator.rb', line 16

def show_readme
  readme "README" if behavior == :invoke
end