Module: Nextgen::ThorExtensions
- Included in:
- CLI
- Defined in:
- lib/nextgen/thor_extensions.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.extended(base) ⇒ Object
5 6 7 8 |
# File 'lib/nextgen/thor_extensions.rb', line 5 def self.extended(base) super base. end |
Instance Method Details
#start(given_args = ARGV, config = {}) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/nextgen/thor_extensions.rb', line 10 def start(given_args = ARGV, config = {}) config[:shell] ||= Thor::Base.shell.new handle_help_switches(given_args) do |args| dispatch(nil, args, nil, config) end rescue Exception => e # rubocop:disable Lint/RescueException handle_exception_on_start(e, config) end |