Class: Bibi::CLI::Commands::Publish

Inherits:
Dry::CLI::Command
  • Object
show all
Defined in:
lib/bibi/cli/commands/publish.rb

Instance Method Summary collapse

Instance Method Details

#call(epub:, name: File.basename(epub, ".*"), **options) ⇒ Object



24
25
26
27
# File 'lib/bibi/cli/commands/publish.rb', line 24

def call(epub:, name: File.basename(epub, ".*"), **options)
  options[:profile] = options[:profile]&.intern
  Bibi::Publish.new(**options).run(epub, name)
end