Class: BoringGenerators::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/boring_generators/cli.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/boring_generators/cli.rb', line 21

def exit_on_failure?
  true
end

Instance Method Details

#__print_versionObject



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, *options)
  Rails::Generators.invoke(generator, options)
end