Sha256: 0bdafebf0cfb037969d6e1d4734631c1a5974537f0a2acf768452fae0f2f1607

Contents?: true

Size: 740 Bytes

Versions: 13

Compression:

Stored size: 740 Bytes

Contents

#!/bin/bash

set -e

# Setup python environment
source <%= @local_install_dir %>/pythonenv/bin/activate

# template config file
export LUIGI_CONFIG_TEMPLATE_PATH=`pwd`/`dirname <%= @luigi_script %>`/client.cfg.template

# expanded config file
export LUIGI_CONFIG_PATH=`pwd`/`dirname <%= @luigi_script %>`/client.cfg

# Setup parameters in environment variables
<% @parameters.each do |p| %>
export <%= p['name'] %>="<%= p['value'] %>";
<% end %>

# Run stillson to expand the configuration template
if [ -f "$LUIGI_CONFIG_TEMPLATE_PATH" ] 
then 
    stillson "$LUIGI_CONFIG_TEMPLATE_PATH" -o $LUIGI_CONFIG_PATH
else
    echo "No luigi client configuration template found in expected location $LUIGI_CONFIG_TEMPLATE_PATH. Not expanding."
fi

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
mortar-0.15.39 lib/mortar/templates/script/runstillson.sh
mortar-0.15.38 lib/mortar/templates/script/runstillson.sh
mortar-0.15.37 lib/mortar/templates/script/runstillson.sh
mortar-0.15.36 lib/mortar/templates/script/runstillson.sh
mortar-0.15.35 lib/mortar/templates/script/runstillson.sh
mortar-0.15.34 lib/mortar/templates/script/runstillson.sh
mortar-0.15.33 lib/mortar/templates/script/runstillson.sh
mortar-0.15.32 lib/mortar/templates/script/runstillson.sh
mortar-0.15.31 lib/mortar/templates/script/runstillson.sh
mortar-0.15.30 lib/mortar/templates/script/runstillson.sh
mortar-0.15.29 lib/mortar/templates/script/runstillson.sh
mortar-0.15.28 lib/mortar/templates/script/runstillson.sh
mortar-0.15.27 lib/mortar/templates/script/runstillson.sh