Sha256: e28c7b7500c9fcac260cda11e1507bf1463b852c316d099b362f7858365e309e
Contents?: true
Size: 571 Bytes
Versions: 21
Compression:
Stored size: 571 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) } end end end end
Version data entries
21 entries across 21 versions & 2 rubygems