libexec/aohelper in alpha_omega-1.5.4 vs libexec/aohelper in alpha_omega-1.5.6

- old
+ new

@@ -1,7 +1,5 @@ -#!/bin/bash - function ryaml { ruby -ryaml -e 'def ps x; unless x.nil?; puts (x.class == String || x.class == Fixnum) ? x : x.to_yaml; end; end; ps ARGV[1..-1].inject(YAML.load(File.read(ARGV[0]))) {|acc, key| acc[acc.class == Array ? key.to_i : key] }' "$@" 2>&- } shome="$(cd -P -- "$(dirname -- "$BASH_SOURCE")/.." && pwd -P)" @@ -9,9 +7,8 @@ app_ruby="$(ryaml $shome/config/deploy.yml app_ruby)" ruby_loader="$(ryaml $shome/config/deploy.yml ruby_loader)" PATH="$PATH:/usr/local/rvm/bin:$HOME/.rvm/bin" if ! $ruby_loader $app_ruby bundle check 2>&- > /dev/null; then - echo "Bundling gems" 1>&2 # TODO use logger stderr $ruby_loader $app_ruby bundle install --local --quiet --path vendor/bundle fi $ruby_loader $app_ruby bundle exec ao "${BASH_SOURCE##*/}" "$@"