Module: Avm::Files::RunnerWith::FilesystemTraverser::TopMethods
- Defined in:
- lib/avm/files/runner_with/filesystem_traverser.rb
Instance Method Summary collapse
- #on_none_path_informed ⇒ Object
- #paths ⇒ Object
- #run_filesystem_traverser ⇒ Object
- #traverser_recursive ⇒ Object
Instance Method Details
#on_none_path_informed ⇒ Object
27 28 29 |
# File 'lib/avm/files/runner_with/filesystem_traverser.rb', line 27 def on_none_path_informed infom 'Warning: none path informed' end |
#paths ⇒ Object
31 32 33 |
# File 'lib/avm/files/runner_with/filesystem_traverser.rb', line 31 def paths parsed.paths.map(&:to_pathname) end |
#run_filesystem_traverser ⇒ Object
35 36 37 38 39 40 41 |
# File 'lib/avm/files/runner_with/filesystem_traverser.rb', line 35 def run_filesystem_traverser if paths.any? paths.each { |path| traverser_check_path(path) } else on_none_path_informed end end |
#traverser_recursive ⇒ Object
43 44 45 46 47 48 49 |
# File 'lib/avm/files/runner_with/filesystem_traverser.rb', line 43 def traverser_recursive return false if parsed.no_recursive? return true if parsed.recursive? setting_value(:default_traverser_recursive, required: false) .if_not_nil(DEFAULT_DEFAULT_TRAVERSER_RECURSIVE) end |