Method: Fog::Compute::OpenNebula::Groups#get
- Defined in:
- lib/fog/opennebula/models/compute/groups.rb
#get(id) ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/fog/opennebula/models/compute/groups.rb', line 16 def get(id) group = self.all({:id => id}) if group.length > 1 raise Fog::Errors::Error.new("groups.get should return only one group, not #{group.length}!") end group.first end |