Permalink
Browse files

Adding intergation files for Snowy-Evening.com

  • Loading branch information...
1 parent 11dc83c commit 4dd3c836bbfff67cdf1741ada77ecc766d2c855a @viveleroi viveleroi committed Apr 30, 2012
Showing with 34 additions and 0 deletions.
  1. +24 −0 docs/snowyevening
  2. +10 −0 services/snowyevening.rb
View
@@ -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)
View
@@ -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.