Sha256: 8c1b0260092045e4a6859e7f06436d921f90e331486532a4da726628d16394b4
Contents?: true
Size: 971 Bytes
Versions: 17
Compression:
Stored size: 971 Bytes
Contents
require 'optparse' require_relative 'base' module VagrantPlugins module Invade module Command class Validate < Base def execute options = {} opts = OptionParser.new do |o| o.banner = "Usage: vagrant invade validate [-f|--force] [-q|--quiet] [-h]" o.separator "" o.on("-f", "--force", "Force replacing current Vagrantfile") do |f| options[:force] = f end o.on("-q", "--quiet", "Just make it whisper.") do |q| options[:quiet] = q end end # Parse the options argv = parse_options(opts) return if !argv # Validates InVaDE configuration action(Action.validate, { :invade_validate_force => options[:force], :invade_validate_quiet => options[:quiet] }) # Success, exit status 0 0 end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems