summaryrefslogtreecommitdiff
path: root/lib/yaml/store.rb
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-09 04:25:15 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-09 04:25:15 +0000
commit9c61c44fbae1616d5be762aab7b1ddbe5b0552df (patch)
treeaab963d2afdf9158d252b20468e05c7b4e0ab806 /lib/yaml/store.rb
parentf0a523c45aeb6044c58af0e8813b9d664f9113b7 (diff)
* lib/yaml/store.rb: use FileUtils::copy.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/yaml/store.rb')
-rw-r--r--lib/yaml/store.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/yaml/store.rb b/lib/yaml/store.rb
index 2e74b27221..d36887720f 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