lib/fluentd_server/sync_runner.rb in fluentd-server-0.3.1 vs lib/fluentd_server/sync_runner.rb in fluentd-server-0.3.2

- old
+ new

@@ -11,17 +11,17 @@ def initialize(opts = {}) end def run logger.debug "[sync] sync runner started" - return nil unless FluentdServer::Config.local_storage + return nil unless FluentdServer::Config.file_storage plus, minus = find_diff create(plus) delete(minus) end def find_locals - return [] unless FluentdServer::Config.local_storage + return [] unless FluentdServer::Config.file_storage names = [] Dir.chdir(FluentdServer::Config.data_dir) do Dir.glob("*.erb") do |filename| names << filename.chomp('.erb') end