Sha256: 617bbca536452fa06f639eb863baa5e2ed788fcdd8437509dad99f358ef973a8

Contents?: true

Size: 591 Bytes

Versions: 14

Compression:

Stored size: 591 Bytes

Contents

# frozen_string_literal: true

require 'log4r'
require 'securerandom'
require 'digest/md5'

module VagrantPlugins
  module ProviderZone
    module Action
      # This is use to define the network
      class NetworkingCleanup
        def initialize(app, _env)
          @logger = Log4r::Logger.new('vagrant_zones::action::import')
          @app = app
        end

        def call(env)
          @machine = env[:machine]
          @driver  = @machine.provider.driver
          @driver.network(env[:ui], 'delete_provisional')
          @app.call(env)
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
vagrant-zones-0.1.98 lib/vagrant-zones/action/network_cleanup.rb
vagrant-zones-0.1.97 lib/vagrant-zones/action/network_cleanup.rb
vagrant-zones-0.1.96 lib/vagrant-zones/action/network_cleanup.rb
vagrant-zones-0.1.94 lib/vagrant-zones/action/network_cleanup.rb
vagrant-zones-0.1.93 lib/vagrant-zones/action/network_cleanup.rb
vagrant-zones-0.1.92 lib/vagrant-zones/action/network_cleanup.rb
vagrant-zones-0.1.91 lib/vagrant-zones/action/network_cleanup.rb
vagrant-zones-0.1.90 lib/vagrant-zones/action/network_cleanup.rb
vagrant-zones-0.1.89 lib/vagrant-zones/action/network_cleanup.rb
vagrant-zones-0.1.88 lib/vagrant-zones/action/network_cleanup.rb
vagrant-zones-0.1.87 lib/vagrant-zones/action/network_cleanup.rb
vagrant-zones-0.1.86 lib/vagrant-zones/action/network_cleanup.rb
vagrant-zones-0.1.85 lib/vagrant-zones/action/network_cleanup.rb
vagrant-zones-0.1.84 lib/vagrant-zones/action/network_cleanup.rb