Sha256: 2d05eb47d6268aa86b196c27c6dc76f03877553c03a24ce568969130237eb40d
Contents?: true
Size: 1.05 KB
Versions: 5
Compression:
Stored size: 1.05 KB
Contents
module Coral module Vagrant module SubCommand class CoralSend < ::Vagrant.plugin('2', :command) #----------------------------------------------------------------------- # Execution def execute options = {} success = true opts = OptionParser.new do |opts| opts.banner = 'Usage: coral send {provider} ...' opts.separator '' options[:tries] = 1 opts.on('-t', '--tries TRIES', 'Number of times to try sending to provider before stopping with an error (1)') do |t| options[:tries] = t end end options[:auth] = true #--- providers = parse_options(opts) return unless providers raise ::Vagrant::Errors::CLIInvalidUsage, :help => opts.help.chomp if providers.length < 1 #--------- # Start exit success ? 0 : 1 end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems