Class: Klipbook::Commands::Exporters::Exporter
- Inherits:
-
Object
- Object
- Klipbook::Commands::Exporters::Exporter
show all
- Defined in:
- lib/klipbook/commands/exporters/exporter.rb
Instance Method Summary
collapse
Constructor Details
#initialize(logger = Logger.new) ⇒ 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
|