Sha256: 03eb1513b0b10d26fb94d8588c8f3e3e69ac6d227427400acd6a5ba75678595f

Contents?: true

Size: 352 Bytes

Versions: 3

Compression:

Stored size: 352 Bytes

Contents

#!/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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
populus-0.0.4 bin/populus
populus-0.0.3 bin/populus
populus-0.0.1 bin/populus