Sha256: 7919d1f59ab9b33e26b98f925bb31e02505cd6d446df930e6adde43502beb792

Contents?: true

Size: 719 Bytes

Versions: 1

Compression:

Stored size: 719 Bytes

Contents

#!/usr/bin/env ruby

$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)

require 'rubygems'
require 'trollop'
require 'yarn'

opts = Trollop::options do
  version "Yarn v#{Yarn::VERSION} 2011 Jesper Kjeldgaard"
  banner <<-EOS
Yarn v#{Yarn::VERSION} is a multiprocess webserver written in Ruby 1.9.2

Usage: yarn [options]
where [options] are:
EOS

  opt :host, "Hostname or IP address of the server", :default => "127.0.0.1"
  opt :port, "Port number to listen on for incomming requests", :default => 3000
  opt :workers, "Number of worker threads", :default => 4
  opt :rack, "Rackup file <config.ru>", :default => "off"
  opt :debug, "Output debug messages"
end

server = Yarn::Server.new(opts)
server.start

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yarn-0.0.2 bin/yarn