Skip to content

CloudFoundry CLI plugin to run a task, and wait for it to complete.

License

Notifications You must be signed in to change notification settings

ae-govau/cf-run-and-wait

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cf-run-and-wait

CloudFoundry CLI plugin to run a task, and wait for it to complete.

Installing

go get github.com/govau/cf-run-and-wait/cmd/run-and-wait
cf install-plugin $GOPATH/bin/run-and-wait

Running a task

cf run-and-wait appname "echo foo"

If successful, will exit with status code of 0.

If it fails, will print some debug info, and exit with non-zero status code.

Building a new release

PLUGIN_PATH=$GOPATH/src/github.com/govau/cf-run-and-wait/cmd/run-and-wait
PLUGIN_NAME=$(basename $PLUGIN_PATH)
cd $PLUGIN_PATH

GOOS=linux GOARCH=amd64 go build -o ${PLUGIN_NAME}.linux64
GOOS=linux GOARCH=386 go build -o ${PLUGIN_NAME}.linux32
GOOS=windows GOARCH=amd64 go build -o ${PLUGIN_NAME}.win64
GOOS=windows GOARCH=386 go build -o ${PLUGIN_NAME}.win32
GOOS=darwin GOARCH=amd64 go build -o ${PLUGIN_NAME}.osx

shasum -a 1 ${PLUGIN_NAME}.linux64
shasum -a 1 ${PLUGIN_NAME}.linux32
shasum -a 1 ${PLUGIN_NAME}.win64
shasum -a 1 ${PLUGIN_NAME}.win32
shasum -a 1 ${PLUGIN_NAME}.osx

About

CloudFoundry CLI plugin to run a task, and wait for it to complete.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%