Skip to content

Commit

Permalink
bin/stellar init per #1
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalextremist committed Dec 11, 2019
1 parent b234e44 commit d1065c9
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# v201912110002-1Gg7 0.0.0.9
* Initial bin/stellar init

# v201912102320-1Gg7 0.0.0.8
* Fix dependencies

Expand Down
37 changes: 30 additions & 7 deletions bin/stellar
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,40 @@
function timestamp { echo `date '+%Y-%m-%d %H:%M:%S.%3N'`; }
function log { echo "$(timestamp) > $1"; }


#de Visit: Realtime development environment; the constellation is locally live.
#de Build: Quasar and Artillery builds together, rendered as build/ and executable.
#de Deploy: Package executable and interface application build into container and push.
#de Monitor: Console tap for Artillery microservices and access to visualize mesh activity.

log "Starting Stellar"
export ARTILLERY_SHOTS_DIRECTORY="stars"
case "${@: -1}" in
init )
#de Clone interface/ into current presence and build initial interface.
if [[ ! -d interface ]]; then
cp -R lib/stellar/interface .
cd interface/
npm install
else
log "Interface already exists."
fi
if [[ ! -d stars ]]; then
cp -R lib/stellar/stars .
cd stars/
else
log "Stars already exist."
fi
;;

start | * )
log "Instantiating Stellar presence/constellation."
export ARTILLERY_SHOTS_DIRECTORY="stars"

export ARTILLERY_BASE="\"stellar\""
if [[ -d "$(pwd)/src" ]]; then
export ARTILLERY_BASE="\"./src/stellar.cr\""
fi

export ARTILLERY_BASE="\"stellar\""
if [[ -d "$(pwd)/src" ]]; then
export ARTILLERY_BASE="\"./src/stellar.cr\""
fi
bin/artillery --bazooka $*
;;

bin/artillery --bazooka $*
esac
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: stellar
version: 0.0.0.8
version: 0.0.0.9
crystal: 0.31.1

github: abstractive/stellar.cr
Expand Down

0 comments on commit d1065c9

Please sign in to comment.