Sha256: ed91a27d3d39860bce6c367d8bfbbee1c28c4fdbce280698b4f4c5d0045d7029

Contents?: true

Size: 672 Bytes

Versions: 1

Compression:

Stored size: 672 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').colorize(: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

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-deltacloud-provider-0.0.6 lib/vagrant-deltacloud-provider/action/abstract_action.rb