Sha256: d3eac5ff71afe610315dd2872389ab7812e73a6e593ec057dadc1b1029d0f0a7

Contents?: true

Size: 493 Bytes

Versions: 3

Compression:

Stored size: 493 Bytes

Contents

class TestLab
  class Container

    module MethodMissing

      # Method missing handler
      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)
        else
          super(method_name, *method_args)
        end
      end

    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
testlab-0.2.1 lib/testlab/container/method_missing.rb
testlab-0.2.0 lib/testlab/container/method_missing.rb
testlab-0.1.0 lib/testlab/container/method_missing.rb