markbates / configatron

A super cool, simple, and feature rich configuration system for Ruby apps.

Home Page:http://www.metabates.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Some key don't compatible with rake

sunteya opened this issue · comments

# Rakefile
gem "configatron", "~> 2.8.2"
require "configatron"

Settings = Configatron.instance
Settings.foo = "foo"
puts Settings.foo  # ok

Settings.import = "import"
puts Settings.import # nothing to print

Because rake is defined some methods in Object: import, task and etc.

I think the solution would be to define your configatron settings outside of the Rakefile, and bring them in via require or something.

The problem is that you're defining something in the Rakefile "space".