From: <jh...@us...> - 2011-07-09 00:36:55
|
Revision: 298 http://etch.svn.sourceforge.net/etch/?rev=298&view=rev Author: jheiss Date: 2011-07-09 00:36:49 +0000 (Sat, 09 Jul 2011) Log Message: ----------- Change a few instances of Dir::chdir to Dir.chdir and similar, both work but the later is more common. Modified Paths: -------------- trunk/server/lib/etch.rb Modified: trunk/server/lib/etch.rb =================================================================== --- trunk/server/lib/etch.rb 2011-07-09 00:26:29 UTC (rev 297) +++ trunk/server/lib/etch.rb 2011-07-09 00:36:49 UTC (rev 298) @@ -375,7 +375,7 @@ # Change into the corresponding directory so that the user can # refer to source files and scripts by their relative pathnames. - Dir::chdir "#{@sourcebase}/#{file}" + Dir.chdir "#{@sourcebase}/#{file}" # See what type of action the user has requested @@ -426,7 +426,7 @@ # Just slurp the file in plain_file = Etch.xmltext(plain_elements.first) - newcontents = IO::read(plain_file) + newcontents = IO.read(plain_file) elsif Etch.xmlfindfirst(config_xml, '/config/file/source/template') template_elements = Etch.xmlarray(config_xml, '/config/file/source/template') if check_for_inconsistency(template_elements) @@ -925,7 +925,7 @@ # Change into the corresponding directory so that the user can # refer to source files and scripts by their relative pathnames. - Dir::chdir "#{@commandsbase}/#{command}" + Dir.chdir "#{@commandsbase}/#{command}" # Check that the resulting document is consistent after filtering remove = [] This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |