lib/awestruct/config.rb in awestruct-0.5.7 vs lib/awestruct/config.rb in awestruct-0.6.0.RC1

- old
+ new

@@ -19,10 +19,12 @@ attr_accessor :stylesheets_dir attr_accessor :verbose attr_accessor :quiet attr_accessor :options + attr_accessor :debug + attr_accessor :perf def initialize(opts = Awestruct::CLI::Options.new) @dir = Pathname.new(File.expand_path(Pathname.new( opts.source_dir ))) @layouts_dir = Pathname.new( File.join(@dir, '_layouts') ) @config_dir = Pathname.new( File.join(@dir, '_config') ) @@ -33,9 +35,12 @@ @tmp_dir = Pathname.new( File.join(@dir, '_tmp') ) @images_dir = Pathname.new( File.join(@dir, 'images') ) @stylesheets_dir = Pathname.new( File.join(@dir, 'stylesheets') ) @options = opts + @verbose = opts.verbose + @debug = opts.debug + @perf = opts.perf_log # Dir[] doesn't like empty list ignore_file = File.join(@dir, ".awestruct_ignore") if File.exists?(ignore_file) ignore_stmts = IO.read(ignore_file).each_line.map(&:strip)