Class: Totoro::InitGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_config_fileObject



8
9
10
11
12
# File 'lib/generators/totoro/init_generator.rb', line 8

def copy_config_file
  template 'create_totoro_failed_messages.rb', File.join('db/migrate', "#{Time.now.strftime('%Y%m%d%H%M%S')}_create_totoro_failed_messages.rb")
  template 'totoro.yml', File.join('config', 'totoro.yml')
  template 'initializer.rb', File.join('config/initializers', 'totoro.rb')
end