Sha256: d8f90e9cf972bb8a4396b26ca3c4995ab1a583728bf5b25fcde2d8f7d90a68ed
Contents?: true
Size: 677 Bytes
Versions: 18
Compression:
Stored size: 677 Bytes
Contents
module Vagrant class Commands # Lists all added boxes module Box class List < BoxCommand BoxCommand.subcommand "list", self description "List all installed boxes" def execute(args=[]) boxes = Vagrant::Box.all(env).sort wrap_output do if !boxes.empty? puts "Installed Vagrant Boxes:\n\n" boxes.each do |box| puts box end else puts "No Vagrant Boxes Added!" end end end def options_spec(opts) opts.banner = "Usage: vagrant box list" end end end end end
Version data entries
18 entries across 18 versions & 2 rubygems