Sha256: 3a0c7011c4e828bbaed564d42c599e8398a1b6f11969562f2b900ee05226301d

Contents?: true

Size: 793 Bytes

Versions: 129

Compression:

Stored size: 793 Bytes

Contents

class TestLab
  class Node

    module MethodMissing

      # Node Method Missing Handler
      def method_missing(method_name, *method_args)
        @ui.logger.debug { "NODE METHOD MISSING: #{method_name.inspect}(#{method_args.inspect})" }

        if TestLab::Provider::PROXY_METHODS.include?(method_name)
          result = nil

          if @provider.respond_to?(method_name)
            @ui.logger.debug { "@provider.send(#{method_name.inspect}, #{method_args.inspect})" }
            result = @provider.send(method_name, *method_args)
          else
            raise TestLab::ProviderError, "Your provider does not respond to the method '#{method_name}'!"
          end

          result
        else
          super(method_name, *method_args)
        end
      end

    end

  end
end

Version data entries

129 entries across 129 versions & 1 rubygems

Version Path
testlab-1.22.4 lib/testlab/node/method_missing.rb
testlab-1.22.3 lib/testlab/node/method_missing.rb
testlab-1.22.2 lib/testlab/node/method_missing.rb
testlab-1.22.1 lib/testlab/node/method_missing.rb
testlab-1.22.0 lib/testlab/node/method_missing.rb
testlab-1.21.1 lib/testlab/node/method_missing.rb
testlab-1.21.0 lib/testlab/node/method_missing.rb
testlab-1.20.6 lib/testlab/node/method_missing.rb
testlab-1.20.5 lib/testlab/node/method_missing.rb
testlab-1.20.4 lib/testlab/node/method_missing.rb
testlab-1.20.3 lib/testlab/node/method_missing.rb
testlab-1.20.2 lib/testlab/node/method_missing.rb
testlab-1.20.1 lib/testlab/node/method_missing.rb
testlab-1.20.0 lib/testlab/node/method_missing.rb
testlab-1.19.0 lib/testlab/node/method_missing.rb
testlab-1.18.1 lib/testlab/node/method_missing.rb
testlab-1.18.0 lib/testlab/node/method_missing.rb
testlab-1.17.0 lib/testlab/node/method_missing.rb
testlab-1.16.1 lib/testlab/node/method_missing.rb
testlab-1.16.0 lib/testlab/node/method_missing.rb