This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import urllib2 | |
| import json | |
| START_URL = 'https://api.bigpanda.io/data/events/deployments/start' | |
| END_URL = 'https://api.bigpanda.io/data/events/deployments/end' | |
| API_TOKEN = '<YOUR API TOKEN>' | |
| HEADERS = {'Content-Type': 'application/json', 'Authorization' : 'Bearer ' + API_TOKEN} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bind = rx.bind | |
| ObsCell = rx.ObsCell | |
| ObsArray = rx.ObsArray | |
| @rxv = {} | |
| events = ["click", "mousedown", "mouseup"] | |
| specialAttrs = rxv.specialAttrs = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| component='application1' | |
| version='1.3.8' | |
| host='ny-serv18' | |
| owner='phil' | |
| # --- Before Deployment | |
| echo { \"component\": \"$component\", \"version\": \"$version\", \"hosts\": [ \"$host\" ], \"owner\": \"$owner\" } > deployment-start.json | |
| curl -i -X POST -H "Authorization: Bearer <api-token>" -H "Content-Type: application/json" -d @deployment-start.json"https://api.bigpanda.io/data/events/deployments/start" |