Sha256: b3f9790d6f3320aa8224a386a27a7fa917fe9cd800fa2cd4c27526a13638d5a8

Contents?: true

Size: 407 Bytes

Versions: 61

Compression:

Stored size: 407 Bytes

Contents

require 'fileutils'

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

        def call(env)
          env.ui.info I18n.t("vagrant.actions.box.destroy.destroying", :name => env["box"].name)
          FileUtils.rm_rf(env["box"].directory)

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

Version data entries

61 entries across 61 versions & 5 rubygems

Version Path
vagrantup-0.8.9 lib/vagrant/action/box/destroy.rb
vagrantup-0.8.8 lib/vagrant/action/box/destroy.rb
vagrantup-0.8.7 lib/vagrant/action/box/destroy.rb
vagrantup-0.8.6 lib/vagrant/action/box/destroy.rb
vagrantup-0.8.5 lib/vagrant/action/box/destroy.rb
vagrantup-0.8.4 lib/vagrant/action/box/destroy.rb
vagrantup-0.8.3 lib/vagrant/action/box/destroy.rb
vagrantup-0.8.2 lib/vagrant/action/box/destroy.rb
vagrantup-0.8.10 lib/vagrant/action/box/destroy.rb
vagrantup-0.8.1 lib/vagrant/action/box/destroy.rb
vagrantup-0.8.0 lib/vagrant/action/box/destroy.rb
vagrantup-0.7.8 lib/vagrant/action/box/destroy.rb
vagrantup-0.7.7 lib/vagrant/action/box/destroy.rb
vagrantup-0.7.6 lib/vagrant/action/box/destroy.rb
vagrantup-0.7.5 lib/vagrant/action/box/destroy.rb
vagrantup-0.7.4 lib/vagrant/action/box/destroy.rb
vagrantup-0.7.3 lib/vagrant/action/box/destroy.rb
vagrantup-0.7.2 lib/vagrant/action/box/destroy.rb
vagrantup-0.7.1 lib/vagrant/action/box/destroy.rb
vagrantup-0.7.0 lib/vagrant/action/box/destroy.rb