Sha256: 5ff0af429c16caa425cfb09d12e9ebb35884925e18b2282f80d75d01a48f5d1a

Contents?: true

Size: 716 Bytes

Versions: 14

Compression:

Stored size: 716 Bytes

Contents

#!/bin/bash

set -e

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

# template config file
export LUIGI_CONFIG_TEMPLATE_PATH=<%= @luigiscripts_path %>/client.cfg.template

# expanded config file
export LUIGI_CONFIG_PATH=<%= @luigiscripts_path %>/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

14 entries across 14 versions & 1 rubygems

Version Path
mortar-0.15.53 lib/mortar/templates/script/runstillson.sh
mortar-0.15.52 lib/mortar/templates/script/runstillson.sh
mortar-0.15.51 lib/mortar/templates/script/runstillson.sh
mortar-0.15.50 lib/mortar/templates/script/runstillson.sh
mortar-0.15.49 lib/mortar/templates/script/runstillson.sh
mortar-0.15.48 lib/mortar/templates/script/runstillson.sh
mortar-0.15.47 lib/mortar/templates/script/runstillson.sh
mortar-0.15.46 lib/mortar/templates/script/runstillson.sh
mortar-0.15.45 lib/mortar/templates/script/runstillson.sh
mortar-0.15.44 lib/mortar/templates/script/runstillson.sh
mortar-0.15.43 lib/mortar/templates/script/runstillson.sh
mortar-0.15.42 lib/mortar/templates/script/runstillson.sh
mortar-0.15.41 lib/mortar/templates/script/runstillson.sh
mortar-0.15.40 lib/mortar/templates/script/runstillson.sh