Class: Cure::Cli::NewCommand
- Defined in:
- lib/cure/cli/new_command.rb
Instance Method Summary collapse
- #help(ex: nil) ⇒ Object
-
#initialize(argv) ⇒ NewCommand
constructor
A new instance of NewCommand.
Methods inherited from Command
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. if ex && ex.is_a?(StandardError) log_info "\nUsage: cure new [name]" end |