class Bookman::Config
Public Class Methods
new( hash )
click to toggle source
# File lib/bookman/config.rb, line 7 def initialize( hash ) @hash = hash ### add source_url e.g. https://github.com ?? - why, why not??? @build_dir = hash[:build_dir] || './build' ## note: defaults to ./build @setup = hash[:setup] end
Public Instance Methods
bookfile_dir()
click to toggle source
Bookfile – allow multiple (more than one) bookfiles - how? why, why not??? – local
todo: move bookfile_dir
to unzip dir (e.g. move Bookfile into /book) - why, why not???
# File lib/bookman/config.rb, line 30 def bookfile_dir() "#{build_dir}/#{collection}/#{setup}"; end
bookfile_path()
click to toggle source
# File lib/bookman/config.rb, line 31 def bookfile_path() "#{bookfile_dir}/Bookfile"; end
build_dir()
click to toggle source
# File lib/bookman/config.rb, line 16 def build_dir() @build_dir; end
datafile_dir()
click to toggle source
Datafile – local
# File lib/bookman/config.rb, line 22 def datafile_dir() "#{build_dir}/#{collection}/#{setup}"; end
datafile_path()
click to toggle source
# File lib/bookman/config.rb, line 23 def datafile_path() "#{datafile_dir}/Datafile"; end
setup()
click to toggle source
# File lib/bookman/config.rb, line 17 def setup() @setup; end