Sha256: f868a13fdb36ff8863132717eeb00e1c4d533eb44ce07d72f3ae977bc31fe49c
Contents?: true
Size: 616 Bytes
Versions: 19
Compression:
Stored size: 616 Bytes
Contents
require 'optparse' module Vagrant module Command class BoxList < Base def execute options = {} opts = OptionParser.new do |opts| opts.banner = "Usage: vagrant box list" end # Parse the options argv = parse_options(opts) return if !argv boxes = @env.boxes.sort if boxes.empty? return @env.ui.warn(I18n.t("vagrant.commands.box.no_installed_boxes"), :prefix => false) end boxes.each { |b| @env.ui.info(b.name, :prefix => false) } # Success, exit status 0 0 end end end end
Version data entries
19 entries across 19 versions & 6 rubygems