Sha256: ad7285cf0ebb24ba6b52ab4d5268da620b68fe539323c6ef4ee8354f8aa7e33c

Contents?: true

Size: 503 Bytes

Versions: 4

Compression:

Stored size: 503 Bytes

Contents

require 'optparse'

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

        opts = OptionParser.new do |opts|
          opts.banner = "List the available Operating System types"
          opts.separator ""
          opts.separator "Usage: vagrant basebox ostypes"
        end

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

        Veewee::Session.list_ostypes
      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_ostypes.rb
HeSYINUvSBZfxqA-veewee-0.203.2 lib/veewee/command/basebox_ostypes.rb
HeSYINUvSBZfxqA-veewee-0.203.1 lib/veewee/command/basebox_ostypes.rb
veewee-0.2.3 lib/veewee/command/basebox_ostypes.rb