Class: KhojGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- KhojGenerator
- Defined in:
- lib/generators/khoj/khoj_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_config ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/generators/khoj/khoj_generator.rb', line 6 def add_config if [:api_key] template 'initializer.rb', 'config/initializers/khoj.rb' else p 'Set option --api-key or -k.' end end |