class DTK::Client::CLI::DirectoryParser
Public Class Methods
adapter()
click to toggle source
# File lib/cli/directory_parser.rb, line 32 def self.adapter @adapter ||= FileSystem.new end
matching_file_obj?(file_types, opts = {})
click to toggle source
file_types - a single or array of FileObj
objects opts can have keys
:file_path - string :dir_path - string
Returns FileObj
that matches a file_typeo bject that matches a file_type in file_types
or returns nil if no match found
# File lib/cli/directory_parser.rb, line 28 def self.matching_file_obj?(file_types, opts = {}) adapter.matching_file_obj?(file_types, opts) end