Skip to content

Commit

Permalink
documenting alternatives
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Sep 15, 2009
1 parent 3df9c7d commit ae792ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/cloud_crowd/action.rb
Expand Up @@ -41,6 +41,7 @@ def download(url, path)
if url.match(FILE_URL)
FileUtils.cp(url.sub(FILE_URL, ''), path)
else
# An alternative would be shelling out: `curl -s "#{url}" > "#{path}"`
resp = RestClient::Request.execute(:url => url, :method => :get, :raw_response => true)
FileUtils.mv resp.file.path, path
end
Expand Down

0 comments on commit ae792ae

Please sign in to comment.