Class: VagrantPlugins::Deltacloud::Action::AbstractAction

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-deltacloud-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-deltacloud-provider/action/abstract_action.rb', line 7

def call(env)
  execute(env)
# rubocop:disable Style/SpecialGlobalVars
# rubocop:disable Lint/RescueException
rescue Errors::VagrantDeltacloudError => e
  raise e
rescue Exception => e
  puts I18n.t('vagrant_deltacloud.global_error') unless e.message && e.message.start_with?('Catched Error:')
  raise $!, "Catched Error: #{$!}", $!.backtrace
end