From 459a391260e3aab5a4a4b459d199a04ab2000afa Mon Sep 17 00:00:00 2001 From: John Bintz Date: Wed, 31 Aug 2011 21:40:51 -0400 Subject: [PATCH] fix --- lib/penchant/gemfile.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/penchant/gemfile.rb b/lib/penchant/gemfile.rb index b84cc26..4f1f5bf 100644 --- a/lib/penchant/gemfile.rb +++ b/lib/penchant/gemfile.rb @@ -7,7 +7,7 @@ module Penchant class << self def do_full_env_switch!(env) 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? return false @@ -56,6 +56,10 @@ module Penchant end end + def run_dot_penchant!(env) + DotPenchant.run(env) + end + private def file_in_path(file) File.join(@path, file) @@ -64,10 +68,6 @@ module Penchant def env(check, &block) instance_eval(&block) if check.to_s == @env.to_s end - - def run_dot_penchant!(env) - DotPenchant.run(env) - end end end