Module: InfinityTest::BinaryPath::ClassMethods

Defined in:
lib/infinity_test/binary_path.rb

Instance Method Summary collapse

Instance Method Details

#binary(binary_name, options = {}) ⇒ Object

Set the binary to search in the RVM binary folder

binary :bundle



31
32
33
34
35
36
37
38
# File 'lib/infinity_test/binary_path.rb', line 31

def binary(binary_name, options={})
  method_sufix = options[:name] || binary_name
  eval <<-EVAL
    def search_#{method_sufix}(environment)
      search_binary('#{binary_name}', :environment => environment)
    end
  EVAL
end