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

Version Path
from-scratch-0.7.0 cookbooks/rvm/libraries/chef_rvm_set_helpers.rb
from-scratch-0.6.0 cookbooks/rvm/libraries/chef_rvm_set_helpers.rb
from-scratch-0.5.0 cookbooks/rvm/libraries/chef_rvm_set_helpers.rb
from-scratch-0.3.0 cookbooks/rvm/libraries/chef_rvm_set_helpers.rb
from-scratch-0.2.0 cookbooks/rvm/libraries/chef_rvm_set_helpers.rb
from-scratch-0.1.1 cookbooks/rvm/libraries/chef_rvm_set_helpers.rb
from-scratch-0.1.0 cookbooks/rvm/libraries/chef_rvm_set_helpers.rb