Skip to content

Instantly share code, notes, and snippets.

@rubypirate
Created October 26, 2012 17:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rubypirate/3960031 to your computer and use it in GitHub Desktop.
Save rubypirate/3960031 to your computer and use it in GitHub Desktop.
def up package
aws_connect
@href = package.items.where(:kind=>'video').first.urls.first.href
url = "#{@href}?token=#{@token}"
AWS::S3::S3Object.store('new_file_name.mp4', open(url), 'jamal_bucket', access: :public_read)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment