Sha256: 7e9602216bc69ed23e862ff902fcc3a675b7172fb87ede3c3b6be1247b1503d1

Contents?: true

Size: 629 Bytes

Versions: 10

Compression:

Stored size: 629 Bytes

Contents

module Vagrant
  class Commands
    # Destroys a vagrant instance. This not only shuts down the instance
    # (if its running), but also deletes it from the system, including the
    # hard disks associated with it.
    #
    # This command requires that an instance already be brought up with
    # `vagrant up`.
    class Destroy < Base
      Base.subcommand "destroy", self
      description "Destroys the vagrant environment"

      def execute(args=[])
        env.require_persisted_vm
        env.vm.destroy
      end

      def options_spec(opts)
        opts.banner = "Usage: vagrant destroy"
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
vagrantup-0.3.4 lib/vagrant/commands/destroy.rb
vagrantup-0.3.3 lib/vagrant/commands/destroy.rb
vagrantup-0.3.2 lib/vagrant/commands/destroy.rb
vagrantup-0.3.1 lib/vagrant/commands/destroy.rb
vagrantup-0.3.0 lib/vagrant/commands/destroy.rb
vagrant-0.3.4 lib/vagrant/commands/destroy.rb
vagrant-0.3.3 lib/vagrant/commands/destroy.rb
vagrant-0.3.2 lib/vagrant/commands/destroy.rb
vagrant-0.3.1 lib/vagrant/commands/destroy.rb
vagrant-0.3.0 lib/vagrant/commands/destroy.rb