fog/fog — pull request #750 by benmanns (2012-02-16 21:42:07+00:00)
Title: [storage] Add copy method to {Local,Ninefold,Rackspace}::File

These changes add tests for File#copy and implements the copy method in `Local::File`, `Ninefold::File`, and `Rackspace::File`, which didn't have the functionality before.

I implemented the `copy_object` method and request Local and Rackspace, but couldn't find a proper API call for copying in Ninefold. For Ninefold, I essentially used `files.create(:body => original.body)`, which has the additional overhead of downloading and uploading the body.

I would have attached this to #735, but because this implements more than just `Local::File`, it belongs in its own pull request.