Module: EBPS::Postprocess::Bookworm

Defined in:
lib/ebps/postprocess/bookworm.rb

Class Method Summary collapse

Class Method Details

.postprocess(data = {}) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/ebps/postprocess/bookworm.rb', line 4

def self.postprocess data={}
  target = EBPS.config.target
  command = "curl -F epub_data=@#{target}"
  data['params'].each do |name, value|
    command << " -F #{name}=#{value}"
  end
  command << " #{data['url']}"
  system command
  "the generated Ebook %s was published on Bookworm" % File.basename(target)
end