Sha256: eac08851b4bc90a56fffb569afa0165459b5bab7d9562bbf64f0f262c84a1847

Contents?: true

Size: 592 Bytes

Versions: 3

Compression:

Stored size: 592 Bytes

Contents

# frozen_string_literal: true

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

module VagrantPlugins
  module ProviderLocal
    module Action
      # This is use to define the network
      class NetworkingCleanup
        def initialize(app, _env)
          @logger = Log4r::Logger.new('vagrant_local::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

3 entries across 3 versions & 1 rubygems

Version Path
vagrant-local-0.0.3 lib/vagrant-local/action/network_cleanup.rb
vagrant-local-0.0.2 lib/vagrant-local/action/network_cleanup.rb
vagrant-local-0.0.1 lib/vagrant-local/action/network_cleanup.rb