Module: Coronate::Builder::EbookBuilder

Defined in:
lib/coronate/builder/ebook_builder.rb

Instance Method Summary collapse

Instance Method Details

#build_ebookObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/coronate/builder/ebook_builder.rb', line 4

def build_ebook
  template 'builder/templates/ebook/build.settings.tt', "#{@name}/build.settings"
  template 'builder/templates/ebook/title.lua.tt', "#{@name}/title.lua"
  template 'builder/templates/ebook/config.lua.tt', "#{@name}/config.lua"
  template 'builder/templates/ebook/main.lua.tt', "#{@name}/main.lua"
  template 'builder/templates/ebook/page1.lua.tt', "#{@name}/page1.lua"

  copy_file 'builder/templates/ebook/coronaicon-big.png', "#{@name}/coronaicon-big.png"
  copy_file 'builder/templates/ebook/cover.jpg', "#{@name}/cover.jpg"
  copy_file 'builder/templates/ebook/moon.png', "#{@name}/moon.png"
  copy_file 'builder/templates/ebook/pagebg1.png', "#{@name}/pagebg1.png"
  copy_file 'builder/templates/ebook/space.jpg', "#{@name}/space.jpg"
  copy_file 'builder/templates/ebook/sun.png', "#{@name}/sun.png"
end