Sha256: f72bab13436415a1709c3dbe6389b873abb2da15a83949fefcb430fd27e90b83

Contents?: true

Size: 1.29 KB

Versions: 10

Compression:

Stored size: 1.29 KB

Contents

module Yao
  module Resources
    require "yao/resources/base"

    autoload :Server,            "yao/resources/server"
    autoload :Flavor,            "yao/resources/flavor"
    autoload :Image,             "yao/resources/image"
    autoload :SecurityGroup,     "yao/resources/security_group"
    autoload :SecurityGroupRule, "yao/resources/security_group_rule"
    autoload :Hypervisor,        "yao/resources/hypervisor"
    autoload :Keypair,           "yao/resources/keypair"
    autoload :FloatingIP,        "yao/resources/floating_ip"
    autoload :Network,           "yao/resources/network"
    autoload :Subnet,            "yao/resources/subnet"
    autoload :Port,              "yao/resources/port"
    autoload :Tenant,            "yao/resources/tenant"
    autoload :Host,              "yao/resources/host"
    autoload :User,              "yao/resources/user"
    autoload :Role,              "yao/resources/role"

    autoload :Resource,          "yao/resources/resource"
    autoload :Meter,             "yao/resources/meter"
    autoload :OldSample,         "yao/resources/old_sample"
    autoload :Sample,            "yao/resources/sample"
  end

  def self.const_missing(name)
    new_klass = Yao::Resources.const_get(name)
    Yao.const_set(name, new_klass)
  rescue NameError
    super
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
yao-0.2.13 lib/yao/resources.rb
yao-0.2.12 lib/yao/resources.rb
yao-0.2.11 lib/yao/resources.rb
yao-0.2.10 lib/yao/resources.rb
yao-0.2.9 lib/yao/resources.rb
yao-0.2.8 lib/yao/resources.rb
yao-0.2.7 lib/yao/resources.rb
yao-0.2.6 lib/yao/resources.rb
yao-0.2.5 lib/yao/resources.rb
yao-0.2.4 lib/yao/resources.rb