Kouhei Sutou
null+****@clear*****
Wed May 14 23:28:53 JST 2014
Kouhei Sutou 2014-05-14 23:28:53 +0900 (Wed, 14 May 2014) New Revision: cd15ab06346aee399b43e75082a418fffb9f13a6 https://github.com/groonga/heroku-buildpack-groonga/commit/cd15ab06346aee399b43e75082a418fffb9f13a6 Message: detect: implement by Ruby Modified files: bin/detect Modified: bin/detect (+9 -6) =================================================================== --- bin/detect 2014-05-11 23:55:08 +0900 (dac5fb9) +++ bin/detect 2014-05-14 23:28:53 +0900 (c1018af) @@ -1,8 +1,11 @@ -#!/usr/bin/env bash -# bin/detect <build-dir> +#!/usr/bin/env ruby -if [ -d $1/groonga ]; then - echo "groonga" && exit 0 +build_dir = ARGV[0] + +if File.exist?(File.join(build_dir, "groonga")) + puts("groonga") + exit(true) else - echo "no" && exit 1 -fi + puts("no") + exit(false) +end -------------- next part -------------- HTML����������������������������...Download