Top Level Namespace
- Includes:
- CloudCLI
Defined Under Namespace
Modules: CloudCLI, CloudClient, DriverExecHelper, OpenNebula, Role, Service Classes: ActionManager, GenericCommand, LocalCommand, OpenNebulaDriver, RemotesCommand, SSHCommand, Sample, SampleDriver, TemplateDriver, VirtualMachineDriver
Constant Summary collapse
- BIN_LOCATION =
ONE_LOCATION + "/bin"
- LIB_LOCATION =
ONE_LOCATION + "/lib"
- ETC_LOCATION =
ONE_LOCATION + "/etc/"
- VAR_LOCATION =
ONE_LOCATION+"/var/"
- ONE_LOCATION =
ENV["ONE_LOCATION"]
Instance Method Summary collapse
- #check_valid(parameter, label) ⇒ Object
-
#error_message(message) ⇒ Object
—————————————————————————- # Helper functions # —————————————————————————- #.
Methods included from CloudCLI
#cmd_name, #print_xml, #version_text
Instance Method Details
#check_valid(parameter, label) ⇒ Object
74 75 76 77 78 79 |
# File 'lib/vcenter_driver.rb', line 74 def check_valid(parameter, label) if parameter.nil? || parameter.empty? STDERR.puts ("The parameter '#{label}' is required for this action.") exit -1 end end |
#error_message(message) ⇒ Object
—————————————————————————- # Helper functions # —————————————————————————- #
66 67 68 69 70 71 72 |
# File 'lib/vcenter_driver.rb', line 66 def () error_str = "ERROR MESSAGE --8<------\n" error_str << error_str << "\nERROR MESSAGE ------>8--" return error_str end |