#!/usr/bin/env ruby require 'rubygems' require 'bundler/setup' require 'optparse' require 'methadone' require 'vcloud/launcher/launch' class App include Methadone::Main include Methadone::CLILogging include Vcloud main do |org_config_file| Launch.new.run(org_config_file, options) end on("-x", "--dont-power-on", "Do not power on vApps (default is to power on)") on("-c", "--continue-on-error", "Continue on error ( default is false) ") arg :org_config_file examples_dir = File.absolute_path( File.join( File.dirname(__FILE__), "..", "examples", File.basename(__FILE__), )) description " vcloud-launch takes a configuration describing a vCloud Org, and tries to make it a reality. See https://github.com/alphagov/vcloud-tools for more info Example configuration files can be found in: #{examples_dir} " version Vcloud::Launcher::VERSION #use_log_level_option go! end