Skip to content

Commit

Permalink
Merge pull request #96 from xdissent/patch-2
Browse files Browse the repository at this point in the history
Fix wrapper paths, now works for both system and user installs.
  • Loading branch information
fnichol committed May 11, 2012
2 parents bca6d64 + 9a9a5f1 commit 5eb594b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/wrapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def load_current_resource
def create_wrapper(bin)
full_bin = "#{new_resource.prefix}_#{bin}"
resource_name = "rvm_wrapper[#{full_bin}::#{@ruby_string}]"
script = ::File.join(::File.dirname(node['rvm']['root_path']), "bin", full_bin)
script = ::File.join(@rvm_env.config["rvm_path"], "bin", full_bin)

if ::File.exists?(script)
Chef::Log.debug("#{resource_name} already exists, so updating")
Expand Down

0 comments on commit 5eb594b

Please sign in to comment.