Sha256: 269de8fdb947f8b2c2b6074e09b5a6885217a516b06b60db29a7d36dd7504c65

Contents?: true

Size: 450 Bytes

Versions: 37

Compression:

Stored size: 450 Bytes

Contents

module VagrantPlugins
  module Parallels
    module Action
      class ClearNetworkInterfaces
        def initialize(app, env)
          @app = app
        end

        def call(env)
          # Delete all disabled network adapters
          env[:ui].info I18n.t("vagrant.actions.vm.clear_network_interfaces.deleting")
          env[:machine].provider.driver.delete_disabled_adapters

          @app.call(env)
        end
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
vagrant-parallels-1.2.0 lib/vagrant-parallels/action/clear_network_interfaces.rb
vagrant-parallels-1.2.0.rc2 lib/vagrant-parallels/action/clear_network_interfaces.rb
vagrant-parallels-1.2.0.rc1 lib/vagrant-parallels/action/clear_network_interfaces.rb
vagrant-parallels-1.1.0 lib/vagrant-parallels/action/clear_network_interfaces.rb
vagrant-parallels-1.0.9.rc1 lib/vagrant-parallels/action/clear_network_interfaces.rb
vagrant-parallels-1.0.8 lib/vagrant-parallels/action/clear_network_interfaces.rb
vagrant-parallels-1.0.7 lib/vagrant-parallels/action/clear_network_interfaces.rb
vagrant-parallels-1.0.6 lib/vagrant-parallels/action/clear_network_interfaces.rb
vagrant-parallels-1.0.6.rc1 lib/vagrant-parallels/action/clear_network_interfaces.rb
vagrant-parallels-1.0.5 lib/vagrant-parallels/action/clear_network_interfaces.rb
vagrant-parallels-1.0.4 lib/vagrant-parallels/action/clear_network_interfaces.rb
vagrant-parallels-1.0.3 lib/vagrant-parallels/action/clear_network_interfaces.rb
vagrant-parallels-1.0.2 lib/vagrant-parallels/action/clear_network_interfaces.rb
vagrant-parallels-1.0.1 lib/vagrant-parallels/action/clear_network_interfaces.rb
vagrant-parallels-1.0.0 lib/vagrant-parallels/action/clear_network_interfaces.rb
vagrant-parallels-0.2.2 lib/vagrant-parallels/action/clear_network_interfaces.rb
vagrant-parallels-0.2.2.rc1 lib/vagrant-parallels/action/clear_network_interfaces.rb