Some key don't compatible with rake
sunteya opened this issue · comments
sunteya commented
# 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.
Kurtis Rainbolt-Greene commented
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".