#!/usr/bin/env ruby $: << File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')) require 'flapjack/cli/worker' require 'flapjack/applications/worker' @options = Flapjack::WorkerOptions.parse(ARGV) app = Flapjack::Worker::Application.run(:host => @options.host, :port => @options.port, :check_directory => @options.check_directory) app.main