Class: Flydata::Agent
- Inherits:
-
Object
- Object
- Flydata::Agent
- Defined in:
- lib/flydata/agent.rb
Instance Method Summary collapse
- #delete_buffer_files ⇒ Object
-
#initialize(flydata_home) ⇒ Agent
constructor
A new instance of Agent.
Constructor Details
#initialize(flydata_home) ⇒ Agent
Returns a new instance of Agent.
6 7 8 |
# File 'lib/flydata/agent.rb', line 6 def initialize(flydata_home) @flydata_home = flydata_home end |
Instance Method Details
#delete_buffer_files ⇒ Object
10 11 12 13 14 |
# File 'lib/flydata/agent.rb', line 10 def delete_buffer_files files = Dir.glob("#{@flydata_home}/#{FlydataCore::Agent::BUFFER_PATH}*") File.delete(*files) files end |