Method: Fluent::Plugin::TailInput::GroupWatch#add_path_to_group_watcher

Defined in:
lib/fluent/plugin/in_tail/group_watch.rb

#add_path_to_group_watcher(path) ⇒ Object



81
82
83
84
85
86
# File 'lib/fluent/plugin/in_tail/group_watch.rb', line 81

def add_path_to_group_watcher(path)
  return nil if @group.nil?
  group_watcher = (path)
  group_watcher.add(path) unless group_watcher.include?(path)
  group_watcher
end