Class: Parklife::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/parklife/config.rb

Constant Summary collapse

CACHE_TMPDIR =
'tmp/parklife/cache'
DEFAULT_HOST =
'example.com'
DEFAULT_SCHEME =
'http'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



19
20
21
22
23
24
25
26
27
28
29
# File 'lib/parklife/config.rb', line 19

def initialize
  self.base = nil
  self.build_dir = 'build'
  self.cache_dir = nil
  self.logger = Logger.new
  self.nested_index = true
  self.no_colour = false
  self.on_404 = :error
  self.reporter = 'null'
  self.skip_build_meta = false
end

Instance Attribute Details

#appObject

Returns the value of attribute app.



16
17
18
# File 'lib/parklife/config.rb', line 16

def app
  @app
end

#baseObject

Returns the value of attribute base.



17
18
19
# File 'lib/parklife/config.rb', line 17

def base
  @base
end

#build_dirObject

Returns the value of attribute build_dir.



17
18
19
# File 'lib/parklife/config.rb', line 17

def build_dir
  @build_dir
end

#cache_dirObject

Returns the value of attribute cache_dir.



17
18
19
# File 'lib/parklife/config.rb', line 17

def cache_dir
  @cache_dir
end

#loggerObject

Returns the value of attribute logger.



16
17
18
# File 'lib/parklife/config.rb', line 16

def logger
  @logger
end

#nested_indexObject

Returns the value of attribute nested_index.



16
17
18
# File 'lib/parklife/config.rb', line 16

def nested_index
  @nested_index
end

#no_colourObject

Returns the value of attribute no_colour.



17
18
19
# File 'lib/parklife/config.rb', line 17

def no_colour
  @no_colour
end

#on_404Object

Returns the value of attribute on_404.



16
17
18
# File 'lib/parklife/config.rb', line 16

def on_404
  @on_404
end

#reporterObject

Returns the value of attribute reporter.



17
18
19
# File 'lib/parklife/config.rb', line 17

def reporter
  @reporter
end

#skip_build_metaObject

Returns the value of attribute skip_build_meta.



16
17
18
# File 'lib/parklife/config.rb', line 16

def skip_build_meta
  @skip_build_meta
end