Sha256: 711030cc890c0f5d8d3e9247746eeff88da0985fc1c7ac012d11ef45f01ad60a
Contents?: true
Size: 418 Bytes
Versions: 5
Compression:
Stored size: 418 Bytes
Contents
module Aruba module Utils def detect_ruby(cmd) if cmd =~ /^ruby\s/ cmd.gsub(/^ruby\s/, "#{current_ruby} ") else cmd end end def current_ruby File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name']) end def ensure_newline(str) str.chomp << "\n" end module_function :detect_ruby, :current_ruby, :ensure_newline end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
aruba-0.7.4 | lib/aruba/utils.rb |
aruba-0.7.3 | lib/aruba/utils.rb |
aruba-0.7.2 | lib/aruba/utils.rb |
aruba-0.7.1 | lib/aruba/utils.rb |
aruba-0.7.0 | lib/aruba/utils.rb |