Skip to content

Commit

Permalink
Track RVM versions for all installations (users and system).
Browse files Browse the repository at this point in the history
References sous-chefs#46
  • Loading branch information
fnichol authored and phlipper committed Feb 1, 2012
1 parent 8015ce4 commit 65fb72b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/chef_rvm_version_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ class << self
end

def self.fetch_version(user = nil)
@@version ||= rvm_version(user)
@@versions ||= Hash.new
rvm_install = user || "system"
@@versions[rvm_install] ||= rvm_version(user)
end

def self.rvm_version(user = nil)
Expand Down

0 comments on commit 65fb72b

Please sign in to comment.