Module: Deltacloud::Collections

Included in:
API
Defined in:
lib/deltacloud/collections/base.rb,
lib/deltacloud/collections.rb,
lib/deltacloud/collections/keys.rb,
lib/deltacloud/collections/images.rb,
lib/deltacloud/collections/realms.rb,
lib/deltacloud/collections/buckets.rb,
lib/deltacloud/collections/drivers.rb,
lib/deltacloud/collections/metrics.rb,
lib/deltacloud/collections/addresses.rb,
lib/deltacloud/collections/firewalls.rb,
lib/deltacloud/collections/instances.rb,
lib/deltacloud/collections/load_balancers.rb,
lib/deltacloud/collections/instance_states.rb,
lib/deltacloud/collections/storage_volumes.rb,
lib/deltacloud/collections/hardware_profiles.rb,
lib/deltacloud/collections/storage_snapshots.rb

Overview

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you 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

http://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: Addresses, Base, Buckets, Drivers, Firewalls, HardwareProfiles, Images, InstanceStates, Instances, Keys, LoadBalancers, Metrics, Realms, StorageSnapshots, StorageVolumes

Class Method Summary collapse

Class Method Details

.collection(name) ⇒ Object



31
32
33
# File 'lib/deltacloud/collections.rb', line 31

def self.collection(name)
  Deltacloud.collections.find { |c| c.collection_name == name }
end

.deltacloud_modulesObject



35
36
37
# File 'lib/deltacloud/collections.rb', line 35

def self.deltacloud_modules
  @deltacloud_modules ||= []
end

.included(klass) ⇒ Object



50
51
52
53
54
55
56
# File 'lib/deltacloud/collections.rb', line 50

def self.included(klass)
  klass.class_eval do
    Deltacloud::Collections.deltacloud_modules.each do |collection_class|
      use collection_class
    end
  end
end