Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Config files in Ruby instead of YAML

#52

Instead of requiring YAML for configuration, perhaps configuration could be done in Ruby too, much like Merb. For example, instead of the standard YAML config:

## config/config.yml

allow_from: all

logging:
  type: Logger
  level: debug

change to:

## config/init.rb

Halcyon.config.use do |c|
  
  # = Framework
  c[:allow_from] = :all
  
  # = Logging
  c[:logging] = {
    :type => 'Logger',
    :level => 'debug'
  }
  
  # = Application
  
end

Reported by Matt Todd · June 19th, 2008 @ 08:20 PM

State: resolved
Milestone: Release 0.5.1
Assigned to: Matt Todd Matt Todd

Activity

  1. Matt Todd
    Matt Todd
    • State changed from new to resolved

    (from [b8b3f9af23d9da96deef141162cb78333a852ab4]) Added boot mechanism to load Ruby config files located in config/ (such as config/init.rb) to handle configuration in Ruby instead of YAML. [#52 state:resolved]

    http://github.com/mtodd/halcyon/...

    June 19th, 2008 @ 08:47 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.