#!/usr/bin/env ruby # -*- mode: ruby -*- require 'populus' mode = ARGV[0] setting = ARGV[1] case mode when 'accept' # FIXME: implement one-time runner Populus.logger.error "FIXME: implement one-time runner" exit 127 when 'watch' Populus::Daemon.run(setting: setting) else Populus.logger.error "Unknown arg: #{mode}" exit 127 end exit 0