Method: CIMI::Service::System.find
- Defined in:
- lib/cimi/service/system.rb
.find(id, context) ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/cimi/service/system.rb', line 18 def self.find(id, context) if id == :all systems = context.driver.systems(context.credentials, {:env=>context}) else systems = context.driver.systems(context.credentials, {:env=>context, :id=>id}) raise CIMI::Model::NotFound unless systems.first systems.first end end |