Class: Libis::Format::Tool::FileTool
Instance Method Summary
collapse
bad_mimetype, run, run_dir, run_list
Instance Method Details
#run(file, _options = {}) ⇒ Object
35
36
37
38
39
40
41
|
# File 'lib/libis/format/tool/file_tool.rb', line 35
def run(file, _options = {})
output = runner(file)
process_output(output)
end
|
#run_dir(dir, recursive = true, _options = {}) ⇒ Object
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# File 'lib/libis/format/tool/file_tool.rb', line 21
def run_dir(dir, recursive = true, _options = {})
filelist = find_files(dir, recursive)
create_list_file(filelist) do |list_file|
output = runner(nil, '--files-from', list_file)
process_output(output)
end
end
|
#run_list(filelist, _options = {}) ⇒ Object
9
10
11
12
13
14
15
16
17
18
19
|
# File 'lib/libis/format/tool/file_tool.rb', line 9
def run_list(filelist, _options = {})
create_list_file(filelist) do |list_file|
output = runner(nil, '--files-from', list_file)
process_output(output)
end
end
|