Skip to content
This repository has been archived by the owner on Jan 31, 2019. It is now read-only.

Commit

Permalink
Merge pull request #987 from aw/update-commandoio-docs-boolean
Browse files Browse the repository at this point in the history
Documentation update for Commandoio and fix  using 'config_boolean_true'
  • Loading branch information
kdaigle committed Nov 24, 2014
2 parents 4419bac + 91661b1 commit cfd64b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions docs/commandoio
@@ -1,14 +1,12 @@
[Commando.io](https://commando.io) is a simpler way to manage servers online.

Commando.io makes it simple to execute commands on groups of servers from a beautiful web interface.
[Commando.io](https://commando.io) A simpler way to manage servers online. Commando.io; your first DevOps hire!

Install Notes
-------------

* **Account alias** - Your account alias is simply the subdomain that you access Commando.io with. For example the account alias of `https://foo.commando.io` is `foo`.
* **API token secret key** - A valid API token secret key. You may create API tokens on the settings page in the Commando.io web interface.
* **Account alias** - Your account alias is simply the subdomain that you access Commando.io with. For example the account alias of `https://foo.commando.io` is `foo`.
* **Recipe** - The recipe you wish to execute. You may find recipe ids in the in the Commando.io web interface.
* **Server** - A single server id. You may find server ids in the modal popup when clicking a server in the Commando.io web interface.
* **Groups** - A list of group ids seperated by commas. You may find group ids in the modal popup when clicking a group in the Commando.io web interface.
* **Halt on stderr** _(Optional)_ - If a server returns stderr during execution, halt and prevent the remaining servers from executing the recipe.
* **Notes** _(Optional)_ - Notes and comments you wish to attach to this execution. Markdown is supported.
* **Halt on stderr** _(Optional)_ - If a server returns stderr during execution, halt and prevent the remaining servers from executing the recipe.
2 changes: 1 addition & 1 deletion lib/services/commandoio.rb
Expand Up @@ -52,7 +52,7 @@ def receive_event

params.merge!(:server => data['server']) if data['server']
params.merge!(:groups => groups) unless groups.nil?
params.merge!(:halt_on_stderr => data['halt_on_stderr']) if data['halt_on_stderr']
params.merge!(:halt_on_stderr => data['halt_on_stderr']) if config_boolean_true?('halt_on_stderr')
params.merge!(:notes => CGI.escape(data['notes'])) if data['notes']

http_post url, params
Expand Down

0 comments on commit cfd64b4

Please sign in to comment.