aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-10-12 23:23:10 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2012-10-12 23:23:10 +0200
commitcdfcae52a49118d43e2064dd228b789b8452664f (patch)
tree62ee1d5f74adf0d085e9421b7a17ab3162dfde96 /docs
parent33ac32f2351b688300e656dfca3f7f6d69e56949 (diff)
downloadapp.sh-cdfcae52a49118d43e2064dd228b789b8452664f.tar.gz
app.sh-cdfcae52a49118d43e2064dd228b789b8452664f.tar.bz2
app.sh-cdfcae52a49118d43e2064dd228b789b8452664f.tar.xz
app.sh-cdfcae52a49118d43e2064dd228b789b8452664f.zip
Major refactoring. Splitting out the method groups into separate files.
Diffstat (limited to 'docs')
-rw-r--r--docs/README.md78
1 files changed, 78 insertions, 0 deletions
diff --git a/docs/README.md b/docs/README.md
new file mode 100644
index 0000000..d744062
--- /dev/null
+++ b/docs/README.md
@@ -0,0 +1,78 @@
+Environment
+-----------
+
+The following environment variables are set by default:
+
+TODOs
+-----
+
+* Support installation-wide settings. Useful for shared environment
+ settings etc (PATH).
+
+* Add support for hooks in .app/hooks. Example hooks:
+ * Diff config. Save a backup of the config On installtaion
+
+* Support changing current version.
+
+* Document app.sh
+ * Concept: config. group, key and value.
+ * Scriptable
+
+* init.d support
+
+Commands
+--------
+
+### `app`
+
+#### `install`
+
+#### `upgrade`
+
+Tries to upgrade all instances where the version doesn't match the resolved version.
+
+#### `list`
+
+#### `list-versions`
+
+#### `set-current`
+
+### `conf`
+
+#### `get`
+
+ ./app -n $n -i $i conf get
+
+#### `set`
+
+ ./app -n $n -i $i conf set group.key value
+
+#### `delete`
+
+ ./app -n $n -i $i conf delete group.key
+
+### `operate`
+
+The operate sub-methods are provided by the application.
+
+#### Supported methods by `pid-method`
+
+#### `start`
+
+#### `stop`
+
+#### `status`
+
+### `foreach`
+
+Runs the given command for each of the selected instances.
+
+Method Contract
+---------------
+
+### Environment variables you can depend on
+
+* `APPSH_NAME`
+* `APPSH_INSTANCE`
+* `APPSH_METHOD`
+