Class: Cure::Cli::NewCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/cure/cli/new_command.rb

Instance Method Summary collapse

Methods inherited from Command

#call, invoke

Methods included from Log

#log_debug, #log_error, #log_info, #log_trace, #log_warn

Constructor Details

#initialize(argv) ⇒ NewCommand

Returns a new instance of NewCommand.



12
13
14
# File 'lib/cure/cli/new_command.rb', line 12

def initialize(argv)
  super(argv)
end

Instance Method Details

#help(ex: nil) ⇒ Object



16
17
18
19
# File 'lib/cure/cli/new_command.rb', line 16

def help(ex: nil)
  log_error ex.message if ex && ex.is_a?(StandardError)
  log_info "\nUsage: cure new [name]"
end