Sha256: 7ce120c02aeea20fff4157e1047fd7b9617a5aeceb663b01a1eea33edf937eed

Contents?: true

Size: 954 Bytes

Versions: 1

Compression:

Stored size: 954 Bytes

Contents

#!/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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vcloud-launcher-0.0.1 bin/vcloud-launch