lib/rvm/environment/env.rb in rvm-1.0.9 vs lib/rvm/environment/env.rb in rvm-1.0.10
- old
+ new
@@ -1,15 +1,15 @@
module RVM
class Environment
# Returns the contents of the env file.
def env_contents
- rvm(:env).stdout
+ rvm(:env, environment_name).stdout
end
# Returns the path to the env file
def env_path
- rvm(:env, :path => true).stdout.strip
+ rvm(:env, environment_name, :path => true).stdout.strip
end
# Returns a ruby-like wrapper for the env functions
def env
@env_wrapper ||= EnvWrapper.new(self)