module MultiIndex::CommandsCommon
Constants
- LOG
Public Instance Methods
print_parameters(options, groups={})
click to toggle source
# File lib/multi_index/common.rb, line 20 def print_parameters(options, groups={}) puts "\nRunning with parameters:".bold options.keys.each do |k| puts "\t#{k}: #{options[k]}".yellow end end
with_exception_handling() { || ... }
click to toggle source
# File lib/multi_index/common.rb, line 12 def with_exception_handling(&block) begin yield rescue Exception => ex LOG.fatal "Something went wrong: \n #{ex.message} \n #{ex.backtrace.join("\n")}\n" end end