Sha256: de07f799e49c2032db4bba1e570c9147e076e4b037d16f83e2e84daa7ae7717e

Contents?: true

Size: 487 Bytes

Versions: 4

Compression:

Stored size: 487 Bytes

Contents

require 'optparse'

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

        opts = OptionParser.new do |opts|
          opts.banner = "Lists all defined baseboxes"
          opts.separator ""
          opts.separator "Usage: vagrant basebox list"
        end

        # Parse the options
        argv = parse_options(opts)
        return if !argv

        Veewee::Session.list_definitions
      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_list.rb
HeSYINUvSBZfxqA-veewee-0.203.2 lib/veewee/command/basebox_list.rb
HeSYINUvSBZfxqA-veewee-0.203.1 lib/veewee/command/basebox_list.rb
veewee-0.2.3 lib/veewee/command/basebox_list.rb