Class: Flydata::Agent

Inherits:
Object
  • Object
show all
Defined in:
lib/flydata/agent.rb

Instance Method Summary collapse

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_filesObject



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