lib/awestruct/config.rb in awestruct-0.1.8 vs lib/awestruct/config.rb in awestruct-0.1.9

- old
+ new

@@ -4,19 +4,23 @@ class Config attr_accessor :layouts_dir attr_accessor :config_dir attr_accessor :extension_dir + attr_accessor :input_dir attr_accessor :output_dir + attr_accessor :tmp_dir attr_accessor :skin_dir attr_accessor :ignore - def initialize() - @layouts_dir = '_layouts' - @config_dir = '_config' - @output_dir = '_site' - @extension_dir = '_ext' - @skin_dir = '_skin' + def initialize(dir) + @layouts_dir = File.join(dir, '_layouts') + @config_dir = File.join(dir, '_config') + @input_dir = File.join(dir, '') + @output_dir = File.join(dir, '_site') + @extension_dir = File.join(dir, '_ext') + @skin_dir = File.join(dir, '_skin') + @tmp_dir = File.join(dir, '_tmp') @ignore = [ ] end end