Class: Adhearsion::CLI::UnknownGeneratorError

Inherits:
Thor::Error
  • Object
show all
Defined in:
lib/adhearsion/cli_commands/thor_errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(gentype) ⇒ UnknownGeneratorError

Returns a new instance of UnknownGeneratorError.



18
19
20
21
# File 'lib/adhearsion/cli_commands/thor_errors.rb', line 18

def initialize(gentype)
  puts "Please specify generator to use (#{Adhearsion::Generators.mappings.keys.join(", ")})"
  super "Unknown command: #{gentype}"
end