From 051bda815de5b7a54e44d378d3f3a53d585798af Mon Sep 17 00:00:00 2001 From: markfisher Date: Thu, 22 Sep 2016 14:17:39 -0400 Subject: [PATCH] added launch scripts --- scripts/stream.fun | 22 ++++++++++++++++++++++ scripts/web.fun | 18 ++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100755 scripts/stream.fun create mode 100755 scripts/web.fun diff --git a/scripts/stream.fun b/scripts/stream.fun new file mode 100755 index 000000000..6177ef01f --- /dev/null +++ b/scripts/stream.fun @@ -0,0 +1,22 @@ +#!/bin/bash + +while getopts ":i:f:o:" opt; do + case $opt in + i) + IN=$OPTARG + ;; + f) + FUNC=$OPTARG + ;; + o) + OUT=$OPTARG + ;; + esac +done + +java -jar ../spring-cloud-function-stream/target/spring-cloud-function-stream-1.0.0.BUILD-SNAPSHOT.jar\ + --spring.cloud.stream.bindings.input.destination=$IN\ + --spring.cloud.stream.bindings.output.destination=$OUT\ + --function.name=func\ + --function.code=$FUNC + diff --git a/scripts/web.fun b/scripts/web.fun new file mode 100755 index 000000000..42cfac1d4 --- /dev/null +++ b/scripts/web.fun @@ -0,0 +1,18 @@ +#!/bin/bash + +while getopts ":p:f:" opt; do + case $opt in + p) + WEBPATH=$OPTARG + ;; + f) + FUNC=$OPTARG + ;; + esac +done + +java -jar ../spring-cloud-function-web/target/spring-cloud-function-web-1.0.0.BUILD-SNAPSHOT.jar\ + --web.path=$WEBPATH\ + --function.name=func\ + --function.code=$FUNC +