Metaprogramming on pool.rb is tested by sync_database_pool_spec.rb
The define_method is not so cool, using that big array, but made
this way to keep campatability with ruby 1.8.7 once this version
has no __callee__ method to check how is the original on alias
Last information, kept on pool.rb because an object like vm has no need
on calling requests without reference as first parameter, this will be
used on others objects (like host), but I opted to keep on each object
so don't need to change fog structure and each object can define its own
request call.
__callee__
method to check how is the original on aliasOn ruby 1.9.3+ we can go this way:
Last information, kept on pool.rb because an object like vm has no need on calling requests without reference as first parameter, this will be used on others objects (like host), but I opted to keep on each object so don't need to change fog structure and each object can define its own request call.