Sha256: c71996a0fdacfa879293d798e393fbd38f17ed42260e932aaf37ea1f0acde5b9
Contents?: true
Size: 462 Bytes
Versions: 6
Compression:
Stored size: 462 Bytes
Contents
require 'optparse' module Vagrant module Command class BoxRemove < Base def execute options = {} opts = OptionParser.new do |opts| opts.banner = "Usage: vagrant box remove <name>" end # Parse the options argv = parse_options(opts) return if !argv b = @env.boxes.find(argv[0]) raise Errors::BoxNotFound, :name => argv[0] if !b b.destroy end end end end
Version data entries
6 entries across 6 versions & 2 rubygems