Class: Veewee::Command::BaseboxTemplates

Inherits:
Vagrant::Command::Base
  • Object
show all
Defined in:
lib/veewee/command/basebox_templates.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_templates.rb', line 6

def execute
  options = {}

  opts = OptionParser.new do |opts|
    opts.banner = "List the currently available basebox templates"
    opts.separator ""
    opts.separator "Usage: vagrant basebox templates"
  end

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

  Veewee::Session.list_templates
end