Method: PortalModule::Runner#execute!
- Defined in:
- lib/portal_module.rb
#execute! ⇒ Object
227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 |
# File 'lib/portal_module.rb', line 227 def execute! exit_code = begin # Run the Thor app PortalModule::CLI.start(@argv) # Thor::Base#start does not have a return value, # assume success if no exception is thrown. 0 rescue StandardError => e b = e.backtrace b.unshift("#{b.shift}: #{e.} (#{e.class})") puts(b.map { |s| "\tfrom #{s}"}.join("\n")) 1 end # Return the exit code exit(exit_code) if @exit_code end |