lib/testlab/container/method_missing.rb in testlab-0.2.1 vs lib/testlab/container/method_missing.rb in testlab-0.3.0
- old
+ new
@@ -1,10 +1,12 @@
class TestLab
class Container
module MethodMissing
- # Method missing handler
+ # Provisioner method handler
+ #
+ # Proxies missing methods to the containers defined provisioner, if any.
def method_missing(method_name, *method_args)
@ui.logger.debug { "CONTAINER METHOD MISSING: #{method_name.inspect}(#{method_args.inspect})" }
if (defined?(@provisioner) && @provisioner.respond_to?(method_name))
@provisioner.send(method_name, [self, *method_args].flatten)