lib/awestruct/config.rb in awestruct-0.5.7.RC2 vs lib/awestruct/config.rb in awestruct-0.5.7

- old
+ new

@@ -21,14 +21,14 @@ attr_accessor :verbose attr_accessor :quiet attr_accessor :options def initialize(opts = Awestruct::CLI::Options.new) - @dir = Pathname.new( opts.source_dir ) + @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') ) @input_dir = @dir - @output_dir = Pathname.new( opts.output_dir ) + @output_dir = Pathname.new(File.expand_path(Pathname.new( opts.output_dir ))) @extension_dir = Pathname.new( File.join(@dir, '_ext') ) @skin_dir = Pathname.new( File.join(@dir, '_skin') ) @tmp_dir = Pathname.new( File.join(@dir, '_tmp') ) @images_dir = Pathname.new( File.join(@dir, 'images') ) @stylesheets_dir = Pathname.new( File.join(@dir, 'stylesheets') )