Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
bugfix: log is used at class and instance level
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfallshaw committed Jul 11, 2010
1 parent 6f054a5 commit 00fe2f9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/podcast.rb
Expand Up @@ -40,6 +40,10 @@ def process(job)
end
end

def log(message)
puts message unless quiet
end

protected

def all_podcast_refs(playlist = self.playlist)
Expand All @@ -49,9 +53,6 @@ def all_podcast_refs(playlist = self.playlist)
[]
end
end
def log(message)
puts message unless quiet
end
end

# Instance methods
Expand Down Expand Up @@ -174,4 +175,7 @@ def cmd(command_string)
exitstatus = $?.exitstatus
raise(RuntimeError, $?) unless exitstatus == 0
end
def log(message)
self.class.log message
end
end

0 comments on commit 00fe2f9

Please sign in to comment.