mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
28 lines
534 B
Ruby
28 lines
534 B
Ruby
module Fog
|
|
class Vcloud < Fog::Service
|
|
class Service < Fog::Service
|
|
|
|
class << self
|
|
|
|
@versions = []
|
|
|
|
def inherited(child)
|
|
super
|
|
child.class_eval <<-EOS, __FILE__, __LINE__
|
|
module #{child}::Real
|
|
extend Fog::Vcloud::Generators
|
|
end
|
|
module #{child}::Mock
|
|
end
|
|
EOS
|
|
child.extend(child::Real)
|
|
if Fog.mocking?
|
|
child.extend(child::Mock)
|
|
end
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|