Module: OpenNebula

Defined in:
lib/OpenNebula/Acl.rb,
lib/OpenNebula.rb,
lib/OpenNebula/Host.rb,
lib/OpenNebula/Pool.rb,
lib/OpenNebula/User.rb,
lib/OpenNebula/Group.rb,
lib/OpenNebula/Image.rb,
lib/OpenNebula/AclPool.rb,
lib/OpenNebula/HostPool.rb,
lib/OpenNebula/Template.rb,
lib/OpenNebula/UserPool.rb,
lib/OpenNebula/XMLUtils.rb,
lib/OpenNebula/GroupPool.rb,
lib/OpenNebula/ImagePool.rb,
lib/OpenNebula/TemplatePool.rb,
lib/OpenNebula/VirtualMachine.rb,
lib/OpenNebula/VirtualNetwork.rb,
lib/OpenNebula/VirtualMachinePool.rb,
lib/OpenNebula/VirtualNetworkPool.rb

Overview

————————————————————————– # Copyright 2002-2011, OpenNebula Project Leads (OpenNebula.org) #

#

Licensed under the Apache License, Version 2.0 (the “License”); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at #

#

www.apache.org/licenses/LICENSE-2.0 #

#

Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an “AS IS” BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ————————————————————————— #

Defined Under Namespace

Classes: Acl, AclPool, Client, Error, Group, GroupPool, Host, HostPool, Image, ImagePool, Pool, PoolElement, Template, TemplatePool, User, UserPool, VirtualMachine, VirtualMachinePool, VirtualNetwork, VirtualNetworkPool, XMLElement, XMLPool

Class Method Summary collapse

Class Method Details

.is_error?(value) ⇒ Boolean


Returns true if the object returned by a method of the OpenNebula library is an Error


Returns:

  • (Boolean)


70
71
72
# File 'lib/OpenNebula.rb', line 70

def self.is_error?(value)
    value.class==OpenNebula::Error
end