Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add hook_name=

  • Loading branch information...
commit 58c2d8f45291e54b936acdb3aeab9b32619b9037 1 parent cec218e
risk danger olson technoweenie authored
7 lib/service.rb
@@ -265,6 +265,13 @@ def hook_name
265 265 end
266 266 end
267 267
  268 + # Sets the uniquely identifying name for this Service type.
  269 + #
  270 + # hook_name - The String name.
  271 + #
  272 + # Returns a String.
  273 + attr_writer :hook_name
  274 +
268 275 # Public: Gets the Hash of secret configuration options. These are set on
269 276 # the GitHub servers and never committed to git.
270 277 #
5 services/basecamp.rb
@@ -4,10 +4,7 @@ class Service::Basecamp < Service
4 4 white_list :project_url, :email_address
5 5 default_events :push, :pull_request, :issues
6 6
7   -
8   - def hook_name
9   - 'bcx'
10   - end
  7 + self.hook_name = 'bcx'
11 8
12 9 def receive_push
13 10 commit = payload['commits'].last || {}
4 services/basecamp_classic.rb
@@ -5,9 +5,7 @@ class Service::BasecampClassic < Service
5 5 white_list :url, :project, :category, :username
6 6
7 7
8   - def hook_name
9   - 'basecamp'
10   - end
  8 + self.hook_name = 'basecamp'
11 9
12 10 def receive_push
13 11 raise_config_error "Invalid basecamp domain" if basecamp_domain.nil?

0 comments on commit 58c2d8f

Please sign in to comment.
Something went wrong with that request. Please try again.