Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Prettified docs.

  • Loading branch information...
commit 2fec98951cd0bd8c0301178c826cfa4e627abb1f 1 parent cab63de
@mtodd authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/halcyon/runner.rb
View
4 lib/halcyon/runner.rb
@@ -16,11 +16,13 @@ module Halcyon
#
# # load the config file and initialize the app
# Halcyon::Runner.new
+ #
class Runner
autoload :Commands, 'halcyon/runner/commands'
# Initializes the application and application resources.
+ #
def initialize(&block)
Halcyon::Application.boot(&block) unless Halcyon::Application.booted
@app = Halcyon::Application.new
@@ -30,6 +32,7 @@ def initialize(&block)
# +env+ the request environment details
#
# Returns [Fixnum:status, {String:header => String:value}, [String:body]]
+ #
def call(env)
@app.call(env)
end
@@ -40,6 +43,7 @@ class << self
# +argv+ the arguments to pass to the commands
#
# Returns nothing
+ #
def run!(argv=ARGV)
Commands.send(argv.shift, argv)
end
Please sign in to comment.
Something went wrong with that request. Please try again.