Class Trollop::Parser
In: lib/rbvmomi/trollop.rb
Parent: Object

Convenience methods for Trollop, Ruby‘s premier option parser.

See the examples directory for sample code. Descriptions are of the form:

 <key>: <options> <environment variable> (<default>)

@see trollop.rubyforge.org/

Methods

Public Instance methods

Select a compute resource

 !!!plain
 computer: -R --computer RBVMOMI_COMPUTER

Options used by VIM.connect

 !!!plain
 host: -o --host RBVMOMI_HOST
 port: --port RBVMOMI_PORT (443)
 no-ssl: --no-ssl RBVMOMI_SSL (false)
 insecure: -k --insecure RBVMOMI_INSECURE (false)
 user: -u --user RBVMOMI_USER (root)
 password: -p --password RBVMOMI_PASSWORD ()
 path: --path RBVMOMI_PATH (/sdk)
 debug: -d --debug RBVMOMI_DEBUG (false)

Select a datacenter

 !!!plain
 datacenter: -D --datacenter RBVMOMI_DATACENTER (ha-datacenter)

Select a datastore

 !!!plain
 datastore: -s --datastore RBVMOMI_DATASTORE (datastore1)

Select a folder

 !!!plain
 folder: -F --folder RBVMOMI_FOLDER ()

[Validate]