Add 'env' command

This aims to let developers run arbitrary commands with the logstash
environment setup (env vars for RUBYLIB, GEM_HOME, etc)
This commit is contained in:
Jordan Sissel 2014-02-27 15:51:19 -08:00
parent dfe7dafe69
commit 28c67bdcdc

View file

@ -29,6 +29,7 @@ export HOME SINCEDB_DIR
case $1 in
deps) install_deps ;;
env) env "$@" ;;
-*)
# is the first argument a flag? If so, assume 'agent'
program="$basedir/lib/logstash/runner.rb"