Module: InfinityTest::BinaryPath

Included in:
TestFramework
Defined in:
lib/infinity_test/binary_path.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
7
# File 'lib/infinity_test/binary_path.rb', line 4

def self.included(base)
  base.extend ClassMethods
  base.send :include, ClassMethods
end

Instance Method Details

#have_binary?(binary) ⇒ Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/infinity_test/binary_path.rb', line 21

def have_binary?(binary)
  File.exist?(binary)
end


13
14
15
# File 'lib/infinity_test/binary_path.rb', line 13

def print_message(gem_name, ruby_version)
  puts "\n Ruby => #{ruby_version}:  I searched the #{gem_name} binary path and I don't find nothing. You have the #{gem_name} installed in this version?"
end

#rvm_bin_path(environment, binary) ⇒ Object



9
10
11
# File 'lib/infinity_test/binary_path.rb', line 9

def rvm_bin_path(environment, binary)
  environment.path_for(binary)
end

#search_binary(binary_name, options) ⇒ Object



17
18
19
# File 'lib/infinity_test/binary_path.rb', line 17

def search_binary(binary_name, options)
  rvm_bin_path(options[:environment], binary_name)
end