Class: Klipbook::Commands::Exporters::Exporter
- Inherits:
-
Object
- Object
- Klipbook::Commands::Exporters::Exporter
- Defined in:
- lib/klipbook/commands/exporters/exporter.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(logger = Logger.new) ⇒ Exporter
constructor
A new instance of Exporter.
- #run!(books:, force:, output_dir:) ⇒ Object
Constructor Details
#initialize(logger = Logger.new) ⇒ Exporter
Returns a new instance of Exporter.
5 6 7 |
# File 'lib/klipbook/commands/exporters/exporter.rb', line 5 def initialize(logger=Logger.new) @logger = logger end |
Instance Method Details
#run!(books:, force:, output_dir:) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/klipbook/commands/exporters/exporter.rb', line 9 def run!(books:, force:, output_dir:) @logger.info "Using output directory: #{output_dir}" books.each do |book| export_book(book, output_dir, force) end end |