Sha256: 12f865ffc9b3aa2658c08e0cc9e0b845bc59ad1beedd7a6ab1bdebbb217becac

Contents?: true

Size: 1.01 KB

Versions: 11

Compression:

Stored size: 1.01 KB

Contents

module Innate
  # this has to be run after a couple of other files have been required

  options.dsl do
    o "Innate::start will not start an adapter if true",
      :started, false

    o "Will send ::setup to each element during Innate::start",
      :setup, [Innate::Cache, Innate::Node]

    o "Trap this signal to issue shutdown, nil/false to disable trap",
      :trap, 'SIGINT'

    o "The compiler for middleware",
      :middleware_compiler, Innate::MiddlewareCompiler

    o "Indicates which default middleware to use, (:dev|:live)",
      :mode, :dev

    o "The directories this application resides in",
      :roots, [File.dirname($0)]

    o "The directories containing static files to be served",
      :publics, ['public']

    o "Directories containing the view templates",
      :views, ['view']

    o "Directories containing the layout templates",
      :layouts, ['layout']

    o "Prefix used to create relative links",
      :prefix, '/'

    trigger(:mode){|value| Innate.middleware_recompile(value) }
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
innate-2012.03 lib/innate/options.rb
innate-2011.12 lib/innate/options.rb
innate-2011.10 lib/innate/options.rb
innate-2011.04 lib/innate/options.rb
innate-2011.01 lib/innate/options.rb
innate-2010.07 lib/innate/options.rb
innate-2010.06.18 lib/innate/options.rb
innate-2010.04 lib/innate/options.rb
innate-2010.03 lib/innate/options.rb
innate-2010.01 lib/innate/options.rb
innate-2009.10 lib/innate/options.rb