Class: BoringGenerators::CLI
- Inherits:
-
Thor
- Object
- Thor
- BoringGenerators::CLI
- Defined in:
- lib/boring_generators/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.exit_on_failure? ⇒ Boolean
21 22 23 |
# File 'lib/boring_generators/cli.rb', line 21 def exit_on_failure? true end |
Instance Method Details
#__print_version ⇒ Object
16 17 18 |
# File 'lib/boring_generators/cli.rb', line 16 def __print_version puts "Boring generators #{BoringGenerators::VERSION}" end |
#generate(generator, *options) ⇒ Object
11 12 13 |
# File 'lib/boring_generators/cli.rb', line 11 def generate(generator, *) Rails::Generators.invoke(generator, ) end |