lib/pull.rb in dev_tasks-0.0.100 vs lib/pull.rb in dev_tasks-0.0.101

- old
+ new

@@ -7,10 +7,11 @@ update end def update if(Environment.scm=='git') - if(Timer.get_elapsed("last_pull").nil? || Timer.get_elapsed("last_pull") > 60*60*2) + if(Timer.elapsed_exceeds?("last_pull",60*60*2)) + #if(Timer.get_elapsed("last_pull").nil? || Timer.get_elapsed("last_pull") > 60*60*2) self.add "<%`git pull 2>&1`%>" self.add "<%Timer.set_timestamp('last_pull')%>" end # last_pull_time=nil # last_pull_time = Time.parse(File.read('log/last_pull').strip) if(File.exist?('log/last_pull')) \ No newline at end of file