require 'flydata-core/agent' module Flydata class Agent def initialize(flydata_home) @flydata_home = flydata_home end def delete_buffer_files files = Dir.glob("#{@flydata_home}/#{FlydataCore::Agent::BUFFER_PATH}*") File.delete(*files) files end end end