From c014f6db04520dd27c707089f3d26444d7b953be Mon Sep 17 00:00:00 2001 From: Matthew Boston Date: Fri, 27 Jan 2012 10:39:22 -0500 Subject: [PATCH] update Rakefile to use pre-defined directories --- Rakefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Rakefile b/Rakefile index 07da095..d35dfe3 100644 --- a/Rakefile +++ b/Rakefile @@ -88,14 +88,14 @@ end task :default => :walk_the_path task :walk_the_path do - cd 'koans' + cd PROB_DIR ruby 'path_to_enlightenment.rb' end if defined?(Rake::RDocTask) Rake::RDocTask.new do |rd| rd.main = "README.rdoc" - rd.rdoc_files.include("README.rdoc", "koans/*.rb") + rd.rdoc_files.include("README.rdoc", "${PROB_DIR}/*.rb") end end @@ -140,7 +140,7 @@ end task :run do puts 'koans' - Dir.chdir("src") do + Dir.chdir("${SRC_DIR}") do puts "in #{Dir.pwd}" sh "ruby path_to_enlightenment.rb" end -- 1.8.0.2