Config files in Ruby instead of YAML
Reported by Matt Todd | June 19th, 2008 @ 08:20 PM | in Release 0.5.1
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
Comments and changes to this ticket
-
Matt Todd June 19th, 2008 @ 08:47 PM
- 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]
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป