source dir name
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
require './replacer'
|
||||
|
||||
sourcedirname = "CPPKoans"
|
||||
|
||||
puts "WARNING - this will modify the actual source files!"
|
||||
puts "if you want to continue type 'yes'"
|
||||
confirmation = gets
|
||||
@@ -8,7 +10,7 @@ confirmation = "yes"
|
||||
if ("yes" == confirmation)
|
||||
puts "OK...."
|
||||
r = Replacer.new
|
||||
r.doit File.join(File.dirname(File.realpath(__FILE__)),'..','src')
|
||||
r.doit File.join(File.dirname(File.realpath(__FILE__)),'..',sourcedirname)
|
||||
else
|
||||
puts "not doing anything"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user