Files
CPPKoans/scripts/replace_expectations.rb
2012-04-18 22:30:17 +02:00

19 lines
411 B
Ruby
Executable File

require './replacer'
sourcedirname = "CPPKoans"
puts "WARNING - this will modify the actual source files!"
puts "if you want to continue type 'yes'"
confirmation = gets
confirmation.strip!
confirmation = "yes"
if ("yes" == confirmation)
puts "OK...."
r = Replacer.new
r.doit File.join(File.dirname(File.realpath(__FILE__)),'..',sourcedirname)
else
puts "not doing anything"
end