Permalink
Browse files

bugfix: log is used at class and instance level

  • Loading branch information...
1 parent 6f054a5 commit 00fe2f98f5af4acbf5041bf29ce0a9eed5f6787b @matthewfallshaw committed Jul 11, 2010
Showing with 7 additions and 3 deletions.
  1. +7 −3 lib/podcast.rb
View
@@ -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)
@@ -49,9 +53,6 @@ def all_podcast_refs(playlist = self.playlist)
[]
end
end
- def log(message)
- puts message unless quiet
- end
end
# Instance methods
@@ -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.