Sha256: c52c63417f71ea7d50642d574972c0d05535ca2a08c93abe9d0a9313b6152c44

Contents?: true

Size: 535 Bytes

Versions: 40

Compression:

Stored size: 535 Bytes

Contents

module Vagrant
  module Action
    module VM
      class ProvisionerCleanup
        def initialize(app, env)
          @app = app
          @env = env
        end

        def call(env)
          enabled_provisioners.each do |instance|
            instance.cleanup
          end

          @app.call(env)
        end

        def enabled_provisioners
          @env[:vm].config.vm.provisioners.map do |provisioner|
            provisioner.provisioner.new(@env, provisioner.config)
          end
        end
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 6 rubygems

Version Path
bmhatfield-vagrant-1.0.10 lib/vagrant/action/vm/provisioner_cleanup.rb
bmhatfield-vagrant-1.0.9 lib/vagrant/action/vm/provisioner_cleanup.rb
bmhatfield-vagrant-1.0.8 lib/vagrant/action/vm/provisioner_cleanup.rb
bmhatfield-vagrant-1.0.7 lib/vagrant/action/vm/provisioner_cleanup.rb
vagrantup-1.0.7 lib/vagrant/action/vm/provisioner_cleanup.rb
vagrantup-1.0.6 lib/vagrant/action/vm/provisioner_cleanup.rb
vagrantup-1.0.5 lib/vagrant/action/vm/provisioner_cleanup.rb
vagrantup-1.0.4 lib/vagrant/action/vm/provisioner_cleanup.rb
vagrantup-1.0.3 lib/vagrant/action/vm/provisioner_cleanup.rb
vagrantup-1.0.2 lib/vagrant/action/vm/provisioner_cleanup.rb
vagrantup-1.0.1 lib/vagrant/action/vm/provisioner_cleanup.rb
vagrantup-1.0.0 lib/vagrant/action/vm/provisioner_cleanup.rb
vagrantup-0.9.99.2 lib/vagrant/action/vm/provisioner_cleanup.rb
vagrantup-0.9.99.1 lib/vagrant/action/vm/provisioner_cleanup.rb
vagrantup-0.9.7 lib/vagrant/action/vm/provisioner_cleanup.rb
vagrantup-0.9.6 lib/vagrant/action/vm/provisioner_cleanup.rb
vagrantup-0.9.5 lib/vagrant/action/vm/provisioner_cleanup.rb
vagrantup-0.9.4 lib/vagrant/action/vm/provisioner_cleanup.rb
vagrantup-0.9.3 lib/vagrant/action/vm/provisioner_cleanup.rb
vagrantup-0.9.2 lib/vagrant/action/vm/provisioner_cleanup.rb