Sha256: 982d00c6340a36459e43078e04ccb2aeac7b9e34d081659e39cd5eaa8b259b6a
Contents?: true
Size: 778 Bytes
Versions: 20
Compression:
Stored size: 778 Bytes
Contents
require 'optparse' require_relative 'base' module VagrantPlugins module Invade module Command class Init < Base def execute options = {} opts = OptionParser.new do |o| o.banner = "Usage: vagrant invade init [-f|--force] [-h]" o.separator "" o.on("-f", "--force", "Force creating configuration file.") do |f| options[:force] = f end end # Parse the options argv = parse_options(opts) return if !argv # Init InVaDE configuration file action(Action.init, { :invade_command_init_force => options[:force] }) # Success, exit status 0 0 end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems