class RnotifierGenerator
Public Instance Methods
add_config()
click to toggle source
# 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
Private Instance Methods
api_key()
click to toggle source
# File lib/generators/rnotifier/rnotifier_generator.rb, line 15 def api_key "'#{options[:api_key]}'" end