Sha256: ffde5024655e022d837691a4969f055d135fb83f652de29cf65494898f280c01

Contents?: true

Size: 657 Bytes

Versions: 3

Compression:

Stored size: 657 Bytes

Contents

require 'colorize'

module VagrantPlugins
  module Deltacloud
    module Action
      class AbstractAction
        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
        # rubocop:enable Lint/RescueException
        # rubocop:enable Style/SpecialGlobalVars
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vagrant-deltacloud-provider-0.0.9 lib/vagrant-deltacloud-provider/action/abstract_action.rb
vagrant-deltacloud-provider-0.0.8 lib/vagrant-deltacloud-provider/action/abstract_action.rb
vagrant-deltacloud-provider-0.0.7 lib/vagrant-deltacloud-provider/action/abstract_action.rb