lib/yao/resources.rb in yao-0.13.4 vs lib/yao/resources.rb in yao-0.14.0
- old
+ new
@@ -2,10 +2,11 @@
module Resources
require "yao/resources/base"
require "yao/resources/tenant_associationable"
require "yao/resources/port_associationable"
require "yao/resources/network_associationable"
+ require "yao/resources/server_usage_associationable"
autoload :Server, "yao/resources/server"
autoload :ServerGroup, "yao/resources/server_group"
autoload :Flavor, "yao/resources/flavor"
autoload :Image, "yao/resources/image"
@@ -40,9 +41,11 @@
autoload :Meter, "yao/resources/meter"
autoload :OldSample, "yao/resources/old_sample"
autoload :Sample, "yao/resources/sample"
end
+ # @param name [String]
+ # @return [object]
def self.const_missing(name)
new_klass = Yao::Resources.const_get(name)
Yao.const_set(name, new_klass)
rescue NameError
super