bash.origin.pinf
v0.1.9
Published
bash.origin.pinf ================
Downloads
5
Readme
bash.origin.pinf
A plugin for Bash.Origin to make genesis.pinf.org tools available.
Usage
#!/bin/bash
# Source https://github.com/cadorn/bash.origin
. "$HOME/.bash.origin"
function init {
eval BO_SELF_BASH_SOURCE="$BO_READ_SELF_BASH_SOURCE"
BO_deriveSelfDir ___TMP___ "$BO_SELF_BASH_SOURCE"
local __BO_DIR__="$___TMP___"
# Example: Provision PINF.Genesis for demo app
pushd "$__BO_DIR__/demo-app" > /dev/null
BO_callPlugin "[email protected]" ensure genesis $@
popd > /dev/null
# Example: Call PINF.IT for demo app
pushd "$__BO_DIR__/demo-app"
BO_callPlugin "[email protected]" pit
popd
# Example: Call PINF.TO for demo app
pushd "$__BO_DIR__/demo-app"
BO_callPlugin "[email protected]" pto
popd
}
init
Test
./test
After running the test you will find generated bundles at ./demo-app/bundles
.
API
pit ...
Calls pit for current working directory passing along all arguments.
pto ...
Calls pto for current working directory passing along all arguments.
ensure genesis ...
Installs genesis.pinf.org for current working directory passing along all arguments.
License
Original Author: Christoph Dorn