Class: RnotifierGenerator

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

Instance Method Summary collapse

Instance Method Details

#add_configObject



6
7
8
9
10
11
12
# File 'lib/generators/rnotifier/rnotifier_generator.rb', line 6

def add_config
	if options[:api_key]
		template 'initializer.rb', 'config/initializers/rnotifier.rb'
	else
	  p 'Set option --api-key or -k.'
	end
end