class OcciClient
OCCI Client class.
Options¶ ↑
-
options - Hash with provided command line arguments.
Public Class Methods
new(options)
click to toggle source
# File lib/probe/occi/client.rb, line 27 def initialize(options) @connection = options # Select OCCI version if options[:occi].to_s == 'rocci' @occi_ver = 'Rocci' else @occi_ver = 'Occi' end end
Public Instance Methods
compute()
click to toggle source
# File lib/probe/occi/client.rb, line 47 def compute @compute ||= eval("#{@occi_ver}::Compute.new @connection") end
network()
click to toggle source
Dynamically selects the proper class
# File lib/probe/occi/client.rb, line 39 def network @network ||= eval("#{@occi_ver}::Network.new @connection") end
storage()
click to toggle source
# File lib/probe/occi/client.rb, line 43 def storage @storage ||= eval("#{@occi_ver}::Storage.new @connection") end