Class: VivlioStarter::CLI::SamovarCommands::PdfCompressCommand
- Inherits:
-
VsCommand
- Object
- Samovar::Command
- VsCommand
- VivlioStarter::CLI::SamovarCommands::PdfCompressCommand
- Defined in:
- lib/vivlio_starter/cli/samovar/pdf_command.rb
Overview
pdf:compress コマンドの Samovar 実装(Public コマンド)
Constant Summary
Constants included from OptionTokenNormalizer
OptionTokenNormalizer::BARE_VALUE_DEFAULTS
Instance Method Summary collapse
Methods included from OptionTokenNormalizer
Instance Method Details
#call ⇒ Object
47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/vivlio_starter/cli/samovar/pdf_command.rb', line 47 def call return print_compress_help if [:help] # 前提条件の検証(ProjectRoot ○ / PdfArtifact ◎: 明示パス指定時のみ) guard_failure = Guards.precheck( Guards::RelaxedCheck.new(Guards::ProjectRootCheck.new), Guards::PdfArtifactCheck.new(input) ) return guard_failure if guard_failure PdfCommands.execute_pdf_compress(, input, output) end |