Sha256: 206b8eddff328cb30c9763dff353139b4c5835d647c07335e849d8fed60dd69e

Contents?: true

Size: 588 Bytes

Versions: 2

Compression:

Stored size: 588 Bytes

Contents

module InfinityTest
  module BinaryPath
    
    def rvm_bin_path(environment, binary)
      "~/.rvm/gems/#{environment.expanded_name}/bin/#{binary}"
    end
    
    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
    
    def search_binary(binary_name, options)
      File.expand_path(rvm_bin_path(options[:environment], binary_name))
    end
    
    def have_binary?(binary)
      File.exist?(binary)
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
infinity_test-0.2.0 lib/infinity_test/binary_path.rb
infinity_test-0.1.0 lib/infinity_test/binary_path.rb