Class: Pdfh::Main
- Inherits:
-
Object
- Object
- Pdfh::Main
- Defined in:
- lib/pdfh/main.rb
Overview
Main functionality. This class is intended to manage the pdf documents
Defined Under Namespace
Classes: RunResult
Class Method Summary collapse
Class Method Details
.start(argv:) ⇒ void
This method returns an undefined value.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/pdfh/main.rb', line 9 def start(argv:) = Pdfh::OptParser.new(argv: argv).parse_argv = Options.new() assign_global_utils() Pdfh.() @settings = SettingsBuilder.build Pdfh.debug "Destination path: #{settings.base_path.colorize(:light_blue)}" .file_mode? ? process_provided_files : process_lookup_dirs rescue SettingsIOError => e Pdfh.error_print(e., exit_app: false) Pdfh.create_settings_file exit(1) rescue StandardError => e Pdfh.backtrace_print e if Pdfh.verbose? Pdfh.error_print(e.) end |