This commit is contained in:
John Bintz 2011-08-31 21:40:51 -04:00
parent 3801299847
commit 459a391260
1 changed files with 5 additions and 5 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
run_dot_penchant!(gemfile_env) if has_dot_penchant? gemfile.run_dot_penchant!(gemfile_env) if gemfile.has_dot_penchant?
if !gemfile.has_gemfile_erb? if !gemfile.has_gemfile_erb?
return false return false
@ -56,6 +56,10 @@ module Penchant
end end
end end
def run_dot_penchant!(env)
DotPenchant.run(env)
end
private private
def file_in_path(file) def file_in_path(file)
File.join(@path, file) File.join(@path, file)
@ -64,10 +68,6 @@ module Penchant
def env(check, &block) def env(check, &block)
instance_eval(&block) if check.to_s == @env.to_s instance_eval(&block) if check.to_s == @env.to_s
end end
def run_dot_penchant!(env)
DotPenchant.run(env)
end
end end
end end