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:
parent
d97384b19e
commit
c7d521018c
2 changed files with 7 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue