mirror of
https://github.com/edgecase/ruby_koans.git
synced 2026-04-15 07:23:19 -04:00
update Rakefile to use pre-defined directories
This commit is contained in:
6
Rakefile
6
Rakefile
@@ -88,14 +88,14 @@ end
|
|||||||
task :default => :walk_the_path
|
task :default => :walk_the_path
|
||||||
|
|
||||||
task :walk_the_path do
|
task :walk_the_path do
|
||||||
cd 'koans'
|
cd PROB_DIR
|
||||||
ruby 'path_to_enlightenment.rb'
|
ruby 'path_to_enlightenment.rb'
|
||||||
end
|
end
|
||||||
|
|
||||||
if defined?(Rake::RDocTask)
|
if defined?(Rake::RDocTask)
|
||||||
Rake::RDocTask.new do |rd|
|
Rake::RDocTask.new do |rd|
|
||||||
rd.main = "README.rdoc"
|
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
|
task :run do
|
||||||
puts 'koans'
|
puts 'koans'
|
||||||
Dir.chdir("src") do
|
Dir.chdir("${SRC_DIR}") do
|
||||||
puts "in #{Dir.pwd}"
|
puts "in #{Dir.pwd}"
|
||||||
sh "ruby path_to_enlightenment.rb"
|
sh "ruby path_to_enlightenment.rb"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user