lib/upgrade.rb in dev_tasks-0.0.25 vs lib/upgrade.rb in dev_tasks-0.0.26
- old
+ new
@@ -1,12 +1,15 @@
require_relative('./environment.rb')
class Upgrade < Array
def initialize
+ puts "Upgrade discovery"
if(Environment.scm=='git' && Environment.branch=='develop')
Dir.glob('dep/**/*.dll').each {|f|
src=Environment.dev_root + "/" + f
+ puts "source: " + src + " " + File.mtime(src).to_s
+ puts " dest: " + f + " " + File.mtime(f).to_s
if(File.exist?(src) && File.mtime(src) > File.mtime(f))
self.add "<%FileUtils.cp('#{src}','#{f}')%>"
end
}
end
\ No newline at end of file