lib/awestruct/config.rb in awestruct-0.4.6 vs lib/awestruct/config.rb in awestruct-0.4.7
- old
+ new
@@ -15,21 +15,23 @@
attr_accessor :track_dependencies
attr_accessor :images_dir
attr_accessor :stylesheets_dir
+ attr_accessor :verbose
+
def initialize(dir = Dir.pwd)
- @dir = Pathname.new( dir )
+ @dir = Pathname.new( dir )
@layouts_dir = Pathname.new( File.join(dir, '_layouts') )
@config_dir = Pathname.new( File.join(dir, '_config') )
@input_dir = Pathname.new( File.join(dir, '') )
@output_dir = Pathname.new( File.join(dir, '_site') )
@extension_dir = Pathname.new( File.join(dir, '_ext') )
@skin_dir = Pathname.new( File.join(dir, '_skin') )
- @tmp_dir = Pathname.new( File.join(dir, '_tmp') )
+ @tmp_dir = Pathname.new( File.join(dir, '_tmp') )
- @images_dir = Pathname.new( File.join(dir, 'images') )
- @stylesheets_dir = Pathname.new( File.join(dir, 'stylesheets') )
+ @images_dir = Pathname.new( File.join(dir, 'images') )
+ @stylesheets_dir = Pathname.new( File.join(dir, 'stylesheets') )
@ignore = File.exists?(ignore_file = File.join(dir, ".awestruct_ignore")) ? Dir[*IO.read(ignore_file).each_line.map(&:strip)] : []
@track_dependencies = false
end