Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding intergation files for Snowy-Evening.com

  • Loading branch information...
commit 4dd3c836bbfff67cdf1741ada77ecc766d2c855a 1 parent 11dc83c
@viveleroi viveleroi authored
Showing with 34 additions and 0 deletions.
  1. +24 −0 docs/snowyevening
  2. +10 −0 services/snowyevening.rb
View
24 docs/snowyevening
@@ -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
10 services/snowyevening.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.