Sha256: 2e9f84e9b1c3b6f164cea5339be830a8f91fa6084688f2cb724be0f1d3833061
Contents?: true
Size: 904 Bytes
Versions: 15
Compression:
Stored size: 904 Bytes
Contents
module Fog module Vcloud module Extension include Fog::Service @versions = [] def self.extended(other) other.module_eval <<-EOS,__FILE__,__LINE__ module #{other}::Real extend Fog::Vcloud::Generators end module #{other}::Mock end def self.extended(klass) unless @required models.each do |model| require File.join(@model_path, model.to_s) end requests.each do |request| require File.join(@request_path, request.to_s) end @required = true end if Fog.mocking? klass.extend #{other}::Real klass.extend #{other}::Mock else klass.extend #{other}::Real end end EOS end end end end
Version data entries
15 entries across 15 versions & 2 rubygems