Override the lookup method for now, because we often call it with empty default and empty scope anyway.
parent
d5d6f7f12a
commit
50ce39da5c
10
run.rb
10
run.rb
|
@ -24,12 +24,20 @@ hiera_configuration = {
|
|||
],
|
||||
}
|
||||
|
||||
Config = Hiera.new(config: hiera_configuration)
|
||||
class ConfigSource < Hiera
|
||||
def lookup key, default="", scope=nil, *stuff
|
||||
super
|
||||
end
|
||||
end
|
||||
|
||||
Config = ConfigSource.new(config: hiera_configuration)
|
||||
|
||||
# Will have to change it to a normal EM loop if/when i'll want to make a usable
|
||||
# local console for the bot.
|
||||
Client = Repost.new do
|
||||
|
||||
scope = { "network" => "freenode" }
|
||||
|
||||
host Config.lookup("server::host", "", scope)
|
||||
port Config.lookup("server::port", "", scope)
|
||||
|
||||
|
|
Loading…
Reference in New Issue