Class: Cure::Cli::GenerateCommand
- Defined in:
- lib/cure/cli/generate_command.rb
Instance Method Summary collapse
- #help(ex: nil) ⇒ Object
-
#initialize(args) ⇒ GenerateCommand
constructor
A new instance of GenerateCommand.
Methods inherited from Command
Methods included from Log
#log_debug, #log_error, #log_info, #log_trace, #log_warn
Constructor Details
#initialize(args) ⇒ GenerateCommand
Returns a new instance of GenerateCommand.
10 11 12 |
# File 'lib/cure/cli/generate_command.rb', line 10 def initialize(args) super(args) end |
Instance Method Details
#help(ex: nil) ⇒ Object
14 15 16 17 |
# File 'lib/cure/cli/generate_command.rb', line 14 def help(ex: nil) log_error ex. if ex && ex.is_a?(StandardError) log_info "\nUsage: cure generate template [name]" end |