Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: Mariano Mara <mariano.mara@gmail.com>
To: sup-talk <sup-talk@rubyforge.org>
Subject: [sup-talk] Warning with mainline version
Date: Tue, 23 Nov 2010 10:23:38 -0300	[thread overview]
Message-ID: <1290518444-sup-4196@kafka> (raw)

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


                 reply	other threads:[~2010-11-23 14:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1290518444-sup-4196@kafka \
    --to=mariano.mara@gmail.com \
    --cc=sup-talk@rubyforge.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox