#!/usr/bin/env ruby current_path = File.expand_path(File.dirname(__FILE__)) require "#{current_path}/../lib/ginatra" require "logger" def logger return @logger if @logger @logger = Logger.new(STDOUT) @logger.level = Logger::INFO @logger.formatter = Proc.new {|s, t, n, msg| "[#{t}] #{msg}\n"} @logger end module Ginatra::Daemon SYMLINK_DIR = File.expand_path('~/.ginatra/symlinks') PID_FILE = File.expand_path('~/.ginatra/daemon.pid') HELP = <