Sha256: dc079cae656ec4a44db83c8a9413ab537fff7960ebfda4e735c675cf05c852c2

Contents?: true

Size: 850 Bytes

Versions: 7

Compression:

Stored size: 850 Bytes

Contents

require 'optparse'
require_relative 'base'

module VagrantPlugins
  module Invade
    module Command
      class Build < Base
        def execute
          options = {}
          opts = OptionParser.new do |o|
            o.banner = 'Usage: vagrant invade build [-q|--quiet] [-h|--help]'
            o.separator ''
            o.on('-q', '--quiet', 'No verbose output.') do |q|
              options[:quiet] = q
            end
          end

          # Parse the options
          argv = parse_options(opts)
          return unless argv

          # Validates InVaDE configuration
          action(Action.build, {
            :invade_build_quiet => options[:quiet],
            :invade_validate_quiet => true,
            :invade_generate => true
          })

          # Success, exit status 0
          0
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
vagrant-invade-0.8.0 lib/vagrant-invade/command/build.rb
vagrant-invade-0.7.0 lib/vagrant-invade/command/build.rb
vagrant-invade-0.6.4 lib/vagrant-invade/command/build.rb
vagrant-invade-0.6.3 lib/vagrant-invade/command/build.rb
vagrant-invade-0.6.2 lib/vagrant-invade/command/build.rb
vagrant-invade-0.6.1 lib/vagrant-invade/command/build.rb
vagrant-invade-0.6.0 lib/vagrant-invade/command/build.rb