Skip to content

Commit

Permalink
update Rakefile to use pre-defined directories
Browse files Browse the repository at this point in the history
  • Loading branch information
bostonaholic committed Jan 27, 2012
1 parent 2625f10 commit c014f6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Rakefile
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c014f6d

Please sign in to comment.