Sha256: 9c8289c22eb2defc5b4a22deab7fbda23536769e61f2e0834d923731272fdf77

Contents?: true

Size: 514 Bytes

Versions: 4

Compression:

Stored size: 514 Bytes

Contents

require 'optparse'

module Veewee
  module Command
    class BaseboxTemplates < Vagrant::Command::Base
      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
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
HeSYINUvSBZfxqA-veewee-0.203.3 lib/veewee/command/basebox_templates.rb
HeSYINUvSBZfxqA-veewee-0.203.2 lib/veewee/command/basebox_templates.rb
HeSYINUvSBZfxqA-veewee-0.203.1 lib/veewee/command/basebox_templates.rb
veewee-0.2.3 lib/veewee/command/basebox_templates.rb