lib/conveyor/foreman.rb in gina-conveyor-0.0.2 vs lib/conveyor/foreman.rb in gina-conveyor-0.1.0
- old
+ new
@@ -33,10 +33,16 @@
"threadpool" => 5,
"websocket" => {
"disabled" => false,
"host" => "0.0.0.0",
"port" => 9876
+ },
+ "campfire" => {
+ "subdomain" => "",
+ "use_ssl" => true,
+ "token" => "",
+ "room" => ""
}
}
@config_file = '.conveyor'
if File.exists? @config_file
@@ -54,9 +60,10 @@
write_config(@config)
end
@config.symbolize_keys!
@config[:websocket].symbolize_keys!
+ @config[:campfire].symbolize_keys!
end
def write_config(config)
File.open(@config_file, 'w') { |fp| fp << config.to_yaml }
end