Sha256: 17973497c6c6d636cb15ef668ecde70dce8b1a3852442a71684e946098041984

Contents?: true

Size: 607 Bytes

Versions: 4

Compression:

Stored size: 607 Bytes

Contents

module Veewee
  module Command
    class BaseboxDestroy < Vagrant::Command::Base
      def execute
        options = {}

        opts = OptionParser.new do |opts|
          opts.banner = "Destroys the virtualmachine that was build for a basebox"
          opts.separator ""
          opts.separator "Usage: vagrant basebox destroy <boxname>"
        end

        # Parse the options
        argv = parse_options(opts)
        return if !argv
        raise Vagrant::Errors::CLIInvalidUsage, :help => opts.help.chomp if argv.length < 1

        Veewee::Session.destroy_vm(argv[0])
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
HeSYINUvSBZfxqA-veewee-0.203.3 lib/veewee/command/basebox_destroy.rb
HeSYINUvSBZfxqA-veewee-0.203.2 lib/veewee/command/basebox_destroy.rb
HeSYINUvSBZfxqA-veewee-0.203.1 lib/veewee/command/basebox_destroy.rb
veewee-0.2.3 lib/veewee/command/basebox_destroy.rb