Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] Warning with mainline version
@ 2010-11-23 13:23 Mariano Mara
  0 siblings, 0 replies; only message in thread
From: Mariano Mara @ 2010-11-23 13:23 UTC (permalink / raw)
  To: sup-talk

Hi. I downloaded git mainline version after using 0.11 for a long time. 
I'm getting the following warning every time the before poll hook is
executed:
.sup/hooks/before-poll.rb:2: warning: method redefined; discarding old
offlineimap_run

This is waht I have in before-poll.rb:
# http://sup.rubyforge.org/wiki/wiki.pl?Hooks
def offlineimap_run()
  cmd = "offlineimap -o -l ~/.offlineimap.log"
  `#{cmd} 2>&1`
end

if (@last_fetch || Time.at(0)) < Time.now - 120 
  say "Running offlineimap..."
  log offlineimap_run()
  say "Finished offlineimap."
end
@last_fetch = Time.now

I'm really bad with ruby, can somebody help me to get rid of this
warning?

TIA,
Mariano
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-11-23 14:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-23 13:23 [sup-talk] Warning with mainline version Mariano Mara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox