aboutsummaryrefslogtreecommitdiff
path: root/.app/lib
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-10-15 18:43:59 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2012-10-15 18:43:59 +0200
commit7a2bbcede061b26cd478a78096512a4bd759ec3e (patch)
treea853e330b1ff770fba241c1e9707a5bb124a6807 /.app/lib
parent2c7a659b8a8d0d7a082aed01ab44e5710841412b (diff)
downloadapp.sh-7a2bbcede061b26cd478a78096512a4bd759ec3e.tar.gz
app.sh-7a2bbcede061b26cd478a78096512a4bd759ec3e.tar.bz2
app.sh-7a2bbcede061b26cd478a78096512a4bd759ec3e.tar.xz
app.sh-7a2bbcede061b26cd478a78096512a4bd759ec3e.zip
o Renaming './app app' to './app instance'.
Diffstat (limited to '.app/lib')
-rw-r--r--.app/lib/app-instance (renamed from .app/lib/app-app)14
1 files changed, 7 insertions, 7 deletions
diff --git a/.app/lib/app-app b/.app/lib/app-instance
index cb87847..2012a74 100644
--- a/.app/lib/app-app
+++ b/.app/lib/app-instance
@@ -65,10 +65,10 @@ method_install_usage() {
echo "usage: install <-r resolver> -u <url>" >&2
echo "" >&2
echo "Install package from a Maven repository:" >&2
- echo " $0 [-n name] [-i instance] app install -r maven -u groupId:artifactId:version" >&2
+ echo " $0 [-n name] [-i instance] instance install -r maven -u groupId:artifactId:version" >&2
echo "" >&2
echo "Install package from a file:" >&2
- echo " $0 [-n name] [-i instance] app install -r file -u file [-v version]" >&2
+ echo " $0 [-n name] [-i instance] instance install -r file -u file [-v version]" >&2
echo "The version defaults to the current timestamp" >&2
exit 1
}
@@ -413,13 +413,13 @@ method_list_versions() {
return 0
}
-method_app_usage() {
+method_instance_usage() {
if [ -n "$1" ]
then
echo "Error:" $@ >&2
fi
- echo "usage: $0 app <method>" >&2
+ echo "usage: $0 instance <method>" >&2
echo "" >&2
echo "Available methods:" >&2
echo " install - Installs an application" >&2
@@ -428,7 +428,7 @@ method_app_usage() {
echo " set-current - Set the current version" >&2
}
-method_app() {
+method_instance() {
local name="$1"; shift
local instance="$1"; shift
local method="$1"
@@ -446,9 +446,9 @@ method_app() {
*)
if [ -z "$method" ]
then
- method_app_usage
+ method_instance_usage
else
- method_app_usage "Unknown method $method"
+ method_instance_usage "Unknown method $method"
fi
;;
esac