Sha256: 93c7daf4d9add8dffd2ac726e954269f9ff633936d7fd791ce52556f68ba4e89

Contents?: true

Size: 1.03 KB

Versions: 2

Compression:

Stored size: 1.03 KB

Contents

#!/usr/bin/env ruby

require 'rubygems'
require 'bundler/setup'
require 'optparse'
require 'methadone'

require 'vcloud/launcher'

class App
  include Methadone::Main
  include Methadone::CLILogging

  main do |org_config_file|
    Vcloud::Launcher::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) ")
  on("-q", "--quiet",   "Quiet output - only report errors")
  on("-v", "--verbose", "Verbose output")

  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

2 entries across 2 versions & 1 rubygems

Version Path
vcloud-launcher-0.1.0 bin/vcloud-launch
vcloud-launcher-0.0.5 bin/vcloud-launch