fix a thing

This commit is contained in:
John Bintz 2011-09-06 15:36:20 -04:00
parent 459a391260
commit c5b6480996
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ module Penchant
class << self class << self
def do_full_env_switch!(env) def do_full_env_switch!(env)
gemfile = Penchant::Gemfile.new gemfile = Penchant::Gemfile.new
gemfile.run_dot_penchant!(gemfile_env) if gemfile.has_dot_penchant? gemfile.run_dot_penchant!(env)
if !gemfile.has_gemfile_erb? if !gemfile.has_gemfile_erb?
return false return false
@ -57,7 +57,7 @@ module Penchant
end end
def run_dot_penchant!(env) def run_dot_penchant!(env)
DotPenchant.run(env) DotPenchant.run(env || environment) if has_dot_penchant?
end end
private private