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

Commit

Permalink
Adding intergation files for Snowy-Evening.com
Browse files Browse the repository at this point in the history
  • Loading branch information
viveleroi committed Apr 30, 2012
1 parent 11dc83c commit 4dd3c83
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/snowyevening
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Snowy Evening
==========

Notifies your project account on Snowy-Evening.com of commits.

Install Notes
-------------

1. Login or create a free or paid account with Snowy-Evening.com
2. Create a project and visit the Project Edit page
3. Find the GitHub integration box, which contains the API Key and Project ID
4. Copy those credentials into these fields.



Developer Notes
---------------

data
- api_key (the API key for using the webservice)
- project (identifier of the project belonging to this repository)

payload
- refer to docs/github_payload (nothing is used by this script)
10 changes: 10 additions & 0 deletions services/snowyevening.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
class Service::SnowyEvening < Service
string :project, :api_key

def receive_push
http.ssl[:verify] = false
res = http_post "https://snowy-evening.com/api/integration/github_commit/"+data['api_key']+"/"+data['project'],
:payload => JSON.generate(payload)
return
end
end

0 comments on commit 4dd3c83

Please sign in to comment.