Method: Sfn::CommandModule::Base::InstanceMethods#get_things
- Defined in:
- lib/sfn/command_module/base.rb
#get_things(stack = nil, message = nil) { ... } ⇒ Object
Wrapper for information retrieval. Provides consistent error message for failures
139 140 141 142 143 144 145 146 147 148 |
# File 'lib/sfn/command_module/base.rb', line 139 def get_things(stack=nil, =nil) begin yield rescue => e ui.fatal "#{message || 'Failed to retrieve information'}#{" for requested stack: #{stack}" if stack}" ui.fatal "Reason: #{e}" _debug(e) exit 1 end end |