git://git.eng.unimelb.edu.au
/
ruby_koans.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2625f10
)
update Rakefile to use pre-defined directories
author
Matthew Boston
<matthew.boston@gmail.com>
Fri, 27 Jan 2012 15:39:22 +0000
(10:39 -0500)
committer
Matthew Boston
<matthew.boston@gmail.com>
Fri, 27 Jan 2012 15:39:22 +0000
(10:39 -0500)
Rakefile
patch
|
blob
|
history
diff --git
a/Rakefile
b/Rakefile
index
07da095
..
d35dfe3
100644
(file)
--- a/
Rakefile
+++ b/
Rakefile
@@
-88,14
+88,14
@@
end
task :default => :walk_the_path
task :walk_the_path do
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"
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
end
end
@@
-140,7
+140,7
@@
end
task :run do
puts 'koans'
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
puts "in #{Dir.pwd}"
sh "ruby path_to_enlightenment.rb"
end