Sha256: dfa03fa5b5ed5597063e3f563603e1dc24f3b6abeaea8bd6a9a0ef4120ccb288

Contents?: true

Size: 678 Bytes

Versions: 11

Compression:

Stored size: 678 Bytes

Contents

require 'colorize'

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
vagrant-conoha-0.1.10 lib/vagrant-conoha/action/abstract_action.rb
vagrant-conoha-0.1.9 lib/vagrant-conoha/action/abstract_action.rb
vagrant-conoha-0.1.8 lib/vagrant-conoha/action/abstract_action.rb
vagrant-conoha-0.1.7 lib/vagrant-conoha/action/abstract_action.rb
vagrant-conoha-0.1.6 lib/vagrant-conoha/action/abstract_action.rb
vagrant-conoha-0.1.5 lib/vagrant-conoha/action/abstract_action.rb
vagrant-conoha-0.1.4 lib/vagrant-conoha/action/abstract_action.rb
vagrant-conoha-0.1.3 lib/vagrant-conoha/action/abstract_action.rb
vagrant-conoha-0.1.2 lib/vagrant-conoha/action/abstract_action.rb
vagrant-conoha-0.1.1 lib/vagrant-conoha/action/abstract_action.rb
vagrant-conoha-0.1.0 lib/vagrant-conoha/action/abstract_action.rb