diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-09 04:25:15 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-09 04:25:15 +0000 |
commit | 6de9e40eacc4f961624b26118b25abbc3191b998 (patch) | |
tree | aab963d2afdf9158d252b20468e05c7b4e0ab806 /lib/yaml | |
parent | 59633b231646cf1a6dc1cbe17364d557313103f8 (diff) | |
download | ruby-6de9e40eacc4f961624b26118b25abbc3191b998.tar.gz ruby-6de9e40eacc4f961624b26118b25abbc3191b998.tar.xz ruby-6de9e40eacc4f961624b26118b25abbc3191b998.zip |
* lib/yaml/store.rb: use FileUtils::copy.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/yaml')
-rw-r--r-- | lib/yaml/store.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/yaml/store.rb b/lib/yaml/store.rb index 2e74b2722..d36887720 100644 --- a/lib/yaml/store.rb +++ b/lib/yaml/store.rb @@ -3,6 +3,7 @@ # require 'yaml' require 'pstore' +require 'fileutils' module YAML @@ -40,7 +41,7 @@ module YAML end file.flock(File::LOCK_EX) if orig - File::copy @filename, backup + FileUtils::copy @filename, backup @table = YAML::load( file ) end begin |