Class: Libis::Format::Tool::FileTool
Instance Method Summary
collapse
bad_mimetype, run, run_dir, run_list
Instance Method Details
#run(file, **_options) ⇒ Object
27
28
29
30
31
|
# File 'lib/libis/format/tool/file_tool.rb', line 27
def run(file, **_options)
output = runner(file)
process_output(output)
end
|
#run_dir(dir, recursive = true, **_options) ⇒ Object
17
18
19
20
21
22
23
24
25
|
# File 'lib/libis/format/tool/file_tool.rb', line 17
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
|
# 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
|