You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ga...@apache.org on 2015/02/13 14:41:32 UTC
stratos git commit: Update the samples with deployment policy
Repository: stratos
Updated Branches:
refs/heads/4.1.0-beta-deployment-policy-fix 0b5a5c59c -> b730112d9
Update the samples with deployment policy
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/b730112d
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/b730112d
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/b730112d
Branch: refs/heads/4.1.0-beta-deployment-policy-fix
Commit: b730112d9f727094f2eda911433ea48e07259d7c
Parents: 0b5a5c5
Author: Gayan Gunarathne <ga...@wso2.com>
Authored: Fri Feb 13 19:11:10 2015 +0530
Committer: Gayan Gunarathne <ga...@wso2.com>
Committed: Fri Feb 13 19:11:10 2015 +0530
----------------------------------------------------------------------
.../java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java | 2 +-
samples/applications/single-cartridge/scripts/common/deploy.sh | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/stratos/blob/b730112d/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java
index 1da56d1..75ae667 100644
--- a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java
+++ b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java
@@ -193,7 +193,7 @@ public class StratosApiV41 extends AbstractApi {
}
/**
- * Creates the Deployement Policy Definition.
+ * Updates the Deployment Policy Definition.
*
* @param deploymentPolicyDefinitionBean the cartridge definition bean
* @return the response
http://git-wip-us.apache.org/repos/asf/stratos/blob/b730112d/samples/applications/single-cartridge/scripts/common/deploy.sh
----------------------------------------------------------------------
diff --git a/samples/applications/single-cartridge/scripts/common/deploy.sh b/samples/applications/single-cartridge/scripts/common/deploy.sh
index 9dbdec9..b11da4b 100755
--- a/samples/applications/single-cartridge/scripts/common/deploy.sh
+++ b/samples/applications/single-cartridge/scripts/common/deploy.sh
@@ -26,6 +26,7 @@ curl -X POST -H "Content-Type: application/json" -d "@${artifacts_path}/autoscal
echo "Adding deploy policy..."
curl -X POST -H "Content-Type: application/json" -d "@${artifacts_path}/deployment-policy.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/deploymentpolicy
+
echo "Adding php cartridge..."
curl -X POST -H "Content-Type: application/json" -d "@${iaas_cartridges_path}/php.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/cartridges