Sha256: 02269f79d174861b5115bc0181cee84d3880a4f606e33c91dc73ac8226c88f6c
Contents?: true
Size: 376 Bytes
Versions: 7
Compression:
Stored size: 376 Bytes
Contents
class Chef module RVM module SetHelpers def rvm_do(user = nil) # Use Gem's version comparing code to compare the two strings rvm_version = VersionCache.fetch_version(user).gsub(/(-|_|#)/, '.') if Gem::Version.new(rvm_version) < Gem::Version.new("1.8.6") "exec" else "do" end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems