Sha256: e0d1fdd9ad0bfdf52289145a1758af133ffe52e9379dadee8447297cc228738c

Contents?: true

Size: 441 Bytes

Versions: 11

Compression:

Stored size: 441 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_adapters

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
vagrant-parallels-0.2.1 lib/vagrant-parallels/action/clear_network_interfaces.rb
vagrant-parallels-0.2.0 lib/vagrant-parallels/action/clear_network_interfaces.rb
vagrant-parallels-0.1.3 lib/vagrant-parallels/action/clear_network_interfaces.rb
vagrant-parallels-0.1.2 lib/vagrant-parallels/action/clear_network_interfaces.rb
vagrant-parallels-0.1.1 lib/vagrant-parallels/action/clear_network_interfaces.rb
vagrant-parallels-0.1.0 lib/vagrant-parallels/action/clear_network_interfaces.rb
vagrant-parallels-0.0.9 lib/vagrant-parallels/action/clear_network_interfaces.rb
vagrant-parallels-0.0.8 lib/vagrant-parallels/action/clear_network_interfaces.rb
vagrant-parallels-0.0.7 lib/vagrant-parallels/action/clear_network_interfaces.rb
vagrant-parallels-0.0.6 lib/vagrant-parallels/action/clear_network_interfaces.rb
vagrant-parallels-0.0.5 lib/vagrant-parallels/action/clear_network_interfaces.rb