Top Level Namespace
Defined Under Namespace
Modules: CodeObject, Configs, Document, Dom, Helper, Logger, Parser, Processor, Tasks, Token Classes: Renderer, String, StringScanner, Thor
Instance Method Summary collapse
Instance Method Details
#setup_application(options = {}) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/boot.rb', line 13 def setup_application( = {}) # initialize Logger Logger.setup :logfile => File.([:logfile], Dir.pwd), :level => ([:loglevel]).to_sym Logger.info "Setting up Application" # Process option-values and store them in our Configs-object Configs.set :options => , # Just store the options for now :wdir => Dir.pwd, # The current working directory :output => File.absolute_path([:output]), :templates => File.absolute_path([:templates]), :includes => ([:includes] && File.absolute_path([:includes])), :files => ([:files] && [:files].map {|path| Dir.glob(path) }.flatten), :docs => ([:docs] && [:docs].map {|path| Dir.glob(path) }.flatten) Logger.debug "Given options: #{}" Logger.debug "App Root: #{Configs.root}" Logger.debug "Working Dir: #{Configs.wdir}" Logger.debug "Output Dir: #{Configs.output}" end |