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 #46
  • Loading branch information
fnichol committed Oct 15, 2011
1 parent 58c0a03 commit b32773a
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

1 comment on commit b32773a

@ryansch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch. My mental model so often only includes my multi user (previously known as system wide) install.

Please sign in to comment.