Skip to content

Instantly share code, notes, and snippets.

@skierkowski
Created October 17, 2014 21:33
Show Gist options
  • Save skierkowski/1b5d385bc13a5e3a325f to your computer and use it in GitHub Desktop.
Save skierkowski/1b5d385bc13a5e3a325f to your computer and use it in GitHub Desktop.
Basic directory for running `factor s`
listen 'web::hook', id:'fire_missiles' do |hook|
run 'rackspace::compute::list', region:'dfw' do |servers|
commands = ['ls -al','pwd']
servers.each do |server|
run 'rackspace::compute::ssh', id:server.id, region:'dfw', commands:commands if server.key_name
end
end
end
# using HTTPie (https://github.com/jakubroztocil/httpie)
# %> http POST https://open-connectors.factor.io/v0.4/hooks/fire_missiles foo='bar'
---
bitballoon: wss://open-connectors.factor.io/v0.4/bitballoon
ftp: wss://open-connectors.factor.io/v0.4/ftp
github: wss://open-connectors.factor.io/v0.4/github
heroku: wss://open-connectors.factor.io/v0.4/heroku
hipchat: wss://open-connectors.factor.io/v0.4/hipchat
newrelic:
metrics: wss://open-connectors.factor.io/v0.4/newrelic_metrics
pushover: wss://open-connectors.factor.io/v0.4/pushover
rackspace:
compute: wss://open-connectors.factor.io/v0.4/rackspace_compute
flavors: wss://open-connectors.factor.io/v0.4/rackspace_compute_flavors
images: wss://open-connectors.factor.io/v0.4/rackspace_compute_images
slack:
channel: wss://open-connectors.factor.io/v0.4/slack_channel
chat: wss://open-connectors.factor.io/v0.4/slack_chat
group: wss://open-connectors.factor.io/v0.4/slack_group
user: wss://open-connectors.factor.io/v0.4/slack_user
ssh: wss://open-connectors.factor.io/v0.4/ssh
timer: wss://open-connectors.factor.io/v0.4/timer
travis: wss://open-connectors.factor.io/v0.4/travis
web: wss://open-connectors.factor.io/v0.4/web
---
github:
api_key: 1c835e6565dxxxxxxxx63294d35a5987e
rackspace:
username: skierkowski
api_key: d3aea086...52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment