From 53b2a1f1f750a48939e69278297d69dbc6b213ad Mon Sep 17 00:00:00 2001 From: Azul Date: Mon, 6 Jan 2014 07:47:28 +0100 Subject: try to get require rubygems to work on travis --- bin/tapicero | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/tapicero b/bin/tapicero index c20a114..f72b0db 100755 --- a/bin/tapicero +++ b/bin/tapicero @@ -1,10 +1,10 @@ -#!/usr/bin/ruby +#!/usr/bin/env ruby -require 'pathname' # # Tapicero Daemon # +require 'pathname' BASE_DIR = Pathname.new(__FILE__).realpath + '../..' begin -- cgit v1.2.3 From 87d76281eb374f4c4538fe5bf5b774b73dd5d7e3 Mon Sep 17 00:00:00 2001 From: Azul Date: Mon, 6 Jan 2014 10:24:43 +0100 Subject: first interesting tests --- bin/tapicero | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/tapicero b/bin/tapicero index f72b0db..32cc228 100755 --- a/bin/tapicero +++ b/bin/tapicero @@ -59,7 +59,6 @@ end # # Start the daemon # -require 'tapicero' # so we can use Tapicero.logger below. require 'daemons' if ENV["USER"] == "root" options = {:app_name => 'tapicero', :dir_mode => :system} # this will put the pid file in /var/run @@ -70,7 +69,6 @@ begin Daemons.run("#{BASE_DIR}/lib/tapicero_daemon.rb", options) rescue SystemExit rescue Exception => exc - Tapicero.logger.error "Uncaught exception. Daemon will die." - Tapicero.logger.error exc.class.name + ": " + exc.to_s - Tapicero.logger.error exc.backtrace.join("\n") + puts exc.class.name + exc.to_s + puts exc.backtrace.join("\n") end -- cgit v1.2.3 From ee4f24abf2a7848a015cfb02bfbdebf7b0874d8e Mon Sep 17 00:00:00 2001 From: Azul Date: Tue, 4 Feb 2014 09:16:19 +0100 Subject: hand config files on the command line to the daemon --- bin/tapicero | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/tapicero b/bin/tapicero index 32cc228..72f974b 100755 --- a/bin/tapicero +++ b/bin/tapicero @@ -46,7 +46,8 @@ end # --overwrite-security overwrite existing couch security settings # TODO: not implemented yet: # --overwrite-designs overwrite existing design documents -Tapicero::FLAGS.concat ARGV.grep(/--.*/) +Tapicero::FLAGS.concat ARGV.grep(/--.*/) +Tapicero::CONFIGS.concat ARGV.grep(/\.ya?ml$/) # if flags have been set but an action is missing we assume # tapicero should run in foreground. -- cgit v1.2.3