mirror of
https://github.com/TimeCrafters/timecrafters_configuration_tool_desktop.git
synced 2025-12-15 21:32:35 +00:00
Added support for multiple configs (local only for now)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
module TAC
|
||||
class Settings
|
||||
attr_accessor :hostname, :port
|
||||
attr_accessor :hostname, :port, :config
|
||||
def initialize
|
||||
parse(File.read(TAC::SETTINGS_PATH))
|
||||
end
|
||||
@@ -10,6 +10,7 @@ module TAC
|
||||
|
||||
@hostname = data[:data][:hostname]
|
||||
@port = data[:data][:port]
|
||||
@config = data[:data][:config]
|
||||
end
|
||||
|
||||
def to_json(*args)
|
||||
@@ -17,6 +18,7 @@ module TAC
|
||||
data: {
|
||||
hostname: @hostname,
|
||||
port: @port,
|
||||
config: @config,
|
||||
}
|
||||
}.to_json(*args)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user