Merge pull request #101 from nicolasmccurdy/use-libraries

Use stdlib methods to replace most non-git shell calls. Looks good.
This commit is contained in:
Jeremy Cook
2014-04-13 17:17:30 -04:00
2 changed files with 11 additions and 10 deletions

View File

@@ -33,7 +33,7 @@ RSpec.configure do |config|
if subdirs
subdir_file = castle.join(Homesick::SUBDIR_FILENAME)
subdirs.each do |subdir|
system "echo #{subdir} >> #{subdir_file}"
File.open(subdir_file, 'a') { |file| file.write "\n#{subdir}\n" }
end
end
return castle.directory('home')