Class: VagrantPlugins::Openstack::Action::AbstractAction

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-openstack-illuin-provider/action/abstract_action.rb

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object



7
8
9
10
11
12
13
14
15
16
# File 'lib/vagrant-openstack-illuin-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