Class: Bosh::Agent::FileMatcher

Inherits:
Object
  • Object
show all
Defined in:
lib/bosh_agent/file_matcher.rb

Direct Known Subclasses

AgentLogMatcher, JobLogMatcher

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(base_dir) ⇒ FileMatcher

Returns a new instance of FileMatcher.



8
9
10
# File 'lib/bosh_agent/file_matcher.rb', line 8

def initialize(base_dir)
  @base_dir = base_dir
end

Instance Attribute Details

#globsObject



16
17
18
# File 'lib/bosh_agent/file_matcher.rb', line 16

def globs
  @globs || default_globs
end

Instance Method Details

#base_dirObject



12
13
14
# File 'lib/bosh_agent/file_matcher.rb', line 12

def base_dir
  @base_dir
end

#default_globsObject



20
21
22
# File 'lib/bosh_agent/file_matcher.rb', line 20

def default_globs
  []
end