Class: FileActioner
- Inherits:
-
Object
- Object
- FileActioner
- Defined in:
- lib/file_actioner.rb
Instance Method Summary collapse
-
#initialize(file_finder, task_manager) ⇒ FileActioner
constructor
A new instance of FileActioner.
- #run ⇒ Object
Constructor Details
#initialize(file_finder, task_manager) ⇒ FileActioner
Returns a new instance of FileActioner.
3 4 5 6 |
# File 'lib/file_actioner.rb', line 3 def initialize(file_finder, task_manager) @file_finder = file_finder @task_manager = task_manager end |
Instance Method Details
#run ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/file_actioner.rb', line 8 def run files = @file_finder.find if (files[:filtered] != []) @task_manager.run(files) end end |