#52 ✓resolved
Matt Todd

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

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Tags

Pages