class Object
Constants
- BIN_LOCATION
- CURL_LOADED
- ETC_LOCATION
- LIB_LOCATION
- MULTIPART_LOADED
- ONE_LOCATION
—————————————————————————- # Set up the environment for the driver # —————————————————————————- #
- REXML_FORMATTERS
- VAR_LOCATION
Public Instance Methods
check_valid(parameter, label)
click to toggle source
# File lib/vcenter_driver.rb, line 74 def check_valid(parameter, label) if parameter.nil? || parameter.empty? STDERR.puts error_message("The parameter '#{label}' is required for this action.") exit -1 end end
error_message(message)
click to toggle source
—————————————————————————- # Helper functions # —————————————————————————- #
# File lib/vcenter_driver.rb, line 66 def error_message(message) error_str = "ERROR MESSAGE --8<------\n" error_str << message error_str << "\nERROR MESSAGE ------>8--" return error_str end