Sha256: da4d3eb3e3f4de8f4162abad9448b6f8eb272960bafaf9d19de40101aaee4f9a

Contents?: true

Size: 828 Bytes

Versions: 2

Compression:

Stored size: 828 Bytes

Contents

require 'optparse'
require_relative 'base'

module VagrantPlugins
  module Invade
    module Command
      class Check < Base
        def execute
          options = {}
          opts = OptionParser.new do |o|
            o.banner = 'Usage: vagrant invade check [-f|--force] [-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.check, {
            :invade_validate_quiet => true # set this to true. Just build without validate output
          })

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vagrant-invade-0.6.1 lib/vagrant-invade/command/check.rb
vagrant-invade-0.6.0 lib/vagrant-invade/command/check.rb