Class: RbEAI::GetFileLogic

Inherits:
Object
  • Object
show all
Defined in:
lib/rbeai/GetLogic.rb

Instance Method Summary collapse

Constructor Details

#initialize(protNode, task) ⇒ GetFileLogic

Returns a new instance of GetFileLogic.



33
34
35
36
37
# File 'lib/rbeai/GetLogic.rb', line 33

def initialize(protNode, task)
  @task = task
  @location = task.location
  @pattern  = task.pattern
end

Instance Method Details

#getFilesObject



39
40
41
42
43
44
45
46
47
# File 'lib/rbeai/GetLogic.rb', line 39

def getFiles()
  files = []
  filesaux = []
  files = rio("#{@location}")["#{@pattern}"]          
  files.each do |file|      
	filesaux << @task.persist(file)		
  end
  return filesaux
end