lib/command_runner.rb in webroar-0.3.1 vs lib/command_runner.rb in webroar-0.4.0
- old
+ new
@@ -281,9 +281,10 @@
@options[:resolver] = value.lstrip.gsub(/^=/,"")
end
opts.on( '-D', '--path DIR', 'Path for the web application root directory') do |value|
@options[:path] = value.lstrip.gsub(/^=/,"")
+ @options[:path] = File.expand_path(@options[:path])
end
opts.on( '-T', '--type APPTYPE', 'Type of the application either rack or rails') do |value|
@options[:type1] = value.lstrip.gsub(/^=/,"").capitalize
end