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