Sha256: 24474f589754cac125fe3495d70b9bcc2783ba581d0e58195a46fee4398f50df

Contents?: true

Size: 661 Bytes

Versions: 4

Compression:

Stored size: 661 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').red 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

4 entries across 4 versions & 1 rubygems

Version Path
vagrant-deltacloud-provider-0.0.5 lib/vagrant-deltacloud-provider/action/abstract_action.rb
vagrant-deltacloud-provider-0.0.4 lib/vagrant-deltacloud-provider/action/abstract_action.rb
vagrant-deltacloud-provider-0.0.3 lib/vagrant-deltacloud-provider/action/abstract_action.rb
vagrant-deltacloud-provider-0.0.2 lib/vagrant-deltacloud-provider/action/abstract_action.rb