Class: Banter::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#add_config_parametersObject


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

def add_config_parameters
  application "config.banter.default_queue_ttl = 1.hour"
  application "config.banter.logger = Rails.logger"
end

#copy_config_fileObject


4
5
6
# File 'lib/generators/banter/install_generator.rb', line 4

def copy_config_file
  copy_file "banter.yml", "config/banter.yml"
end