Created
October 17, 2014 21:33
-
-
Save skierkowski/1b5d385bc13a5e3a325f to your computer and use it in GitHub Desktop.
Basic directory for running `factor s`
This file contains 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
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' |
This file contains 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
--- | |
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 |
This file contains 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
--- | |
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