Sha256: 7c5f6d5cd1b182173c2f5d65cb7b96203f3ed09d779f413b3fb3f24406296c78
Contents?: true
Size: 766 Bytes
Versions: 1
Compression:
Stored size: 766 Bytes
Contents
#!/usr/bin/env ruby begin require 'pry' require 'ebook_renamer' rescue LoadError $:.unshift File.join(File.dirname(__FILE__), '..', 'lib') require 'ebook_renamer' end include EbookRenamer include EbookRenamer::Options require 'ostruct' begin options = parse_options() EbookRenamer.logger.info "Your options: #{options}" meta_binary = options.delete(:meta_binary) # # Note: if we need to adjust the path to the executable EbookRenamer.configure do |config| #config.meta_binary = '/usr/bin/ebook-meta' config.meta_binary = meta_binary unless meta_binary.nil? end cli = EbookRenamer::CLI.new(EbookRenamer.configuration) cli.rename(options[:base_dir], options) exit 0 rescue ArgumentError => e puts e exit 1 end # vim: ft=ruby
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ebook_renamer-0.0.3 | bin/ebook_renamer |