Sha256: 7d9c00ac1d414611c5f8cc2d288971c50a649ec903bbfb0c55dc6bfbed62bade

Contents?: true

Size: 1.06 KB

Versions: 45

Compression:

Stored size: 1.06 KB

Contents

#!/usr/bin/env ruby
require 'rubygems'
require 'thin'
#require 'gaptool-server/app.rb'

# Hijack the thin module to set default options to run in the right place
module Thin
  class GaptoolRunner < Thin::Runner
    def initialize(argv)
      @argv = argv

      # Default options values
      @options = {
        :chdir                => File.expand_path('..', File.dirname(__FILE__)),
        :environment          => ENV['RACK_ENV'] || 'development',
        :address              => '0.0.0.0',
        :port                 => Server::DEFAULT_PORT,
        :timeout              => Server::DEFAULT_TIMEOUT,
        :log                  => 'log/thin.log',
        :pid                  => 'tmp/pids/thin.pid',
        :max_conns            => Server::DEFAULT_MAXIMUM_CONNECTIONS,
        :max_persistent_conns => Server::DEFAULT_MAXIMUM_PERSISTENT_CONNECTIONS,
        :require              => [],
        :wait                 => Controllers::Cluster::DEFAULT_WAIT_TIME
      }

      parse!
    end
  end
end

# Run with thin, with thin args
Thin::GaptoolRunner.new(ARGV).run!

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
gaptool-server-0.5.19 bin/gaptool-server
gaptool-server-0.5.18 bin/gaptool-server
gaptool-server-0.5.17 bin/gaptool-server
gaptool-server-0.5.16 bin/gaptool-server
gaptool-server-0.5.15 bin/gaptool-server
gaptool-server-0.5.14 bin/gaptool-server
gaptool-server-0.5.13 bin/gaptool-server
gaptool-server-0.5.12 bin/gaptool-server
gaptool-server-0.5.11 bin/gaptool-server
gaptool-server-0.5.10 bin/gaptool-server
gaptool-server-0.5.8 bin/gaptool-server
gaptool-server-0.5.7 bin/gaptool-server
gaptool-server-0.5.6 bin/gaptool-server
gaptool-server-0.5.5 bin/gaptool-server
gaptool-server-0.5.4 bin/gaptool-server
gaptool-server-0.5.3 bin/gaptool-server
gaptool-server-0.5.2 bin/gaptool-server
gaptool-server-0.5.1 bin/gaptool-server
gaptool-server-0.5.0 bin/gaptool-server
gaptool-server-0.4.14 bin/gaptool-server