Sha256: 8aa5ab678733a99b6594a6f579fa23ebee506c728af38c4c654f5099d3bbaca0

Contents?: true

Size: 343 Bytes

Versions: 10

Compression:

Stored size: 343 Bytes

Contents

module Vagrant
  class Action
    module Box
      class Destroy
        def initialize(app, env)
          @app = app
          @env = env
        end

        def call(env)
          env.logger.info "Deleting box directory..."
          FileUtils.rm_rf(env["box"].directory)

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

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
vagrantup-0.5.4 lib/vagrant/action/box/destroy.rb
vagrantup-0.5.3 lib/vagrant/action/box/destroy.rb
vagrantup-0.5.2 lib/vagrant/action/box/destroy.rb
vagrantup-0.5.1 lib/vagrant/action/box/destroy.rb
vagrantup-0.5.0 lib/vagrant/action/box/destroy.rb
vagrant-0.5.4 lib/vagrant/action/box/destroy.rb
vagrant-0.5.3 lib/vagrant/action/box/destroy.rb
vagrant-0.5.2 lib/vagrant/action/box/destroy.rb
vagrant-0.5.1 lib/vagrant/action/box/destroy.rb
vagrant-0.5.0 lib/vagrant/action/box/destroy.rb