Class: Veewee::Command::BaseboxOstypes

Inherits:
Vagrant::Command::Base
  • Object
show all
Defined in:
lib/veewee/command/basebox_ostypes.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/veewee/command/basebox_ostypes.rb', line 6

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