class Smith::AgentConfig
Public Class Methods
new(path, name)
click to toggle source
# File lib/smith/agent_config.rb, line 8 def initialize(path, name) @path = Pathname.new(path) @db ||= LevelDB::DB.new(@path.join(name).to_s) end
Public Instance Methods
for(agent)
click to toggle source
# File lib/smith/agent_config.rb, line 13 def for(agent) @db[agent] end
update(agent, value)
click to toggle source
# File lib/smith/agent_config.rb, line 17 def update(agent, value) @db[agent] = value end