1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

implement respond_to? corresponding to method_missing for VirtualBox and libvirt

This commit is contained in:
Konstantin Haase 2012-01-12 16:40:11 +01:00
parent d97384b19e
commit c7d521018c
2 changed files with 7 additions and 0 deletions

View file

@ -90,6 +90,9 @@ module Fog
return newuri
end
def respond_to?(method, *)
super or @connection.respond_to? method
end
# hack to provide 'requests'
def method_missing(method_sym, *arguments, &block)

View file

@ -34,6 +34,10 @@ module Fog
@connection = ::VirtualBox::Global.global.lib.virtualbox
end
def respond_to?(method, *)
super or @connection.respond_to? method
end
# hack to provide 'requests'
def method_missing(method_sym, *arguments, &block)
if @connection.respond_to?(method_sym)