Sha256: afc891721f17db5f7f8e2f81d19a3a6cdbe4e848fd0c725e1861536941d6aff7

Contents?: true

Size: 952 Bytes

Versions: 5

Compression:

Stored size: 952 Bytes

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, Innate::Cache, Innate::Node]

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

    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.recompile_middleware(value) }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
innate-2023.01.06 lib/innate/options.rb
innate-2015.10.28 lib/innate/options.rb
innate-2013.02.21 lib/innate/options.rb
innate-2013.02 lib/innate/options.rb
innate-2012.12 lib/innate/options.rb