class Bookman::WorldConfig

Public Class Methods

new( hash ) click to toggle source
Calls superclass method Bookman::Config::new
# File lib/bookman/world.rb, line 7
def initialize( hash ) super; end

Public Instance Methods

book_templates_unzip_dir() click to toggle source

rename to book_dir ?? why, why not? - split zip into book_dir and book_templates_dir why? why not?

# File lib/bookman/world.rb, line 33
def book_templates_unzip_dir()  "#{build_dir}/#{collection}/#{setup}/book";  end
bookfile_url() click to toggle source

Bookfile – remote

# File lib/bookman/world.rb, line 14
def bookfile_url()
  ## note: for now always return world.rb
  ##   use country specific bookfiles ??   allow selection of package,how?? why,why not??
  "https://github.com/book-templates/bookfile/raw/master/world.rb"
end
collection() click to toggle source
# File lib/bookman/world.rb, line 9
def collection() 'world'; end
create_db!() click to toggle source
# File lib/bookman/world.rb, line 28
def create_db!()  WorldDb.create_all;  end
datafile_url() click to toggle source

Datafile – remote

# File lib/bookman/world.rb, line 23
def datafile_url() "https://github.com/openmundi/datafile/raw/master/#{setup}.rb"; end
db_path() click to toggle source

Database

# File lib/bookman/world.rb, line 27
def db_path() "#{build_dir}/#{collection}/#{setup}/#{collection}.db"; end