Method: Openwsman.epr_uri_for
- Defined in:
- lib/openwsman/openwsman.rb
.epr_uri_for(namespace, classname) ⇒ Object
create full endpoint reference URI for namespace and classname
-
classname
- classname (using the <schema>_<name> format) -
namespace
- optional namespace, required for Windows WMI which embeds the namespace in the EPR
Examples
Openwsman.epr_uri_for "root/cimv2", "Win32_Foo"
=> "http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_Foo"
95 96 97 98 99 |
# File 'lib/openwsman/openwsman.rb', line 95 def self.epr_uri_for namespace, classname raise "Namespace must not be nil" unless namespace raise "Classname must not be nil" unless classname epr = epr_prefix_for(classname,namespace) + "/#{classname}" end |