Skip to content

Commit

Permalink
add compatibility for pre-BuilderPlugin cc.rb versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tardate committed May 3, 2012
1 parent 3d2f62c commit 5b1fb1a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/campfire_notifier.rb
@@ -1,5 +1,12 @@
require 'broach'

unless defined?(BuilderPlugin)
# Define a dummy Plugin class if not already available
# This allows for compatibility with very old cc.rb 1.4 deployments
class BuilderPlugin
end
end

class CampfireNotifier < BuilderPlugin
attr_accessor :account, :token, :room, :trac_url, :broken_image, :fixed_image
attr_accessor :ssl, :only_failed_builds, :only_fixed_and_broken_builds, :only_first_failure
Expand Down

0 comments on commit 5b1fb1a

Please sign in to comment.