Sha256: 47eb3379429066623196dabf0c32838359c9644f24292ee56d805b0e18707cba

Contents?: true

Size: 1 KB

Versions: 16

Compression:

Stored size: 1 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){|v| Innate.middleware_recompile(v) }
  end
end

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
manveru-innate-2009.04.08 lib/innate/options.rb
manveru-innate-2009.04.18 lib/innate/options.rb
manveru-innate-2009.04 lib/innate/options.rb
manveru-innate-2009.05 lib/innate/options.rb
manveru-innate-2009.06.12 lib/innate/options.rb
manveru-innate-2009.06 lib/innate/options.rb
manveru-innate-2009.07 lib/innate/options.rb
rjspotter-innate-2009.06.29 lib/innate/options.rb
rjspotter-innate-2009.06.30 lib/innate/options.rb
rjspotter-innate-2009.06.31 lib/innate/options.rb
innate-2009.07 lib/innate/options.rb
innate-2009.04 lib/innate/options.rb
innate-2009.06.12 lib/innate/options.rb
innate-2009.06 lib/innate/options.rb
innate-2009.05 lib/innate/options.rb
innate-2009.04.12 lib/innate/options.rb