class VagrantPlugins::Openstack::Action::AbstractAction

Public Instance Methods

call(env) click to toggle source
# File lib/vagrant-openstack-provider/action/abstract_action.rb, line 7
def call(env)
  execute(env)
# rubocop:disable Style/SpecialGlobalVars
# rubocop:disable Lint/RescueException
rescue Errors::VagrantOpenstackError, SystemExit, Interrupt => e
  raise e
rescue Exception => e
  puts I18n.t('vagrant_openstack.global_error').red unless e.message && e.message.start_with?('Catched Error:')
  raise $!, "Catched Error: #{$!}", $!.backtrace
end