Class: Xapixctl::BaseCli
- Inherits:
-
Thor
- Object
- Thor
- Xapixctl::BaseCli
show all
- Defined in:
- lib/xapixctl/base_cli.rb
Class Method Summary
collapse
Class Method Details
.exit_on_failure? ⇒ Boolean
8
|
# File 'lib/xapixctl/base_cli.rb', line 8
def self.exit_on_failure?; true; end
|
.start(given_args = ARGV, config = {}) ⇒ Object
10
11
12
13
14
15
|
# File 'lib/xapixctl/base_cli.rb', line 10
def self.start(given_args = ARGV, config = {})
super
rescue StandardError => err
config[:debug] || ENV["THOR_DEBUG"] == "1" ? (raise err) : config[:shell].error(err.message)
exit(false) if exit_on_failure?
end
|