Created
October 13, 2012 05:53
-
-
Save marutanm/3883407 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
irb(main):001:0> require 'Fog' | |
irb(main):002:0> glacier = Fog::AWS::Glacier.new aws_access_key_id: '', aws_secret_access_key: '', region: 'ap-northeast-1' | |
irb(main):003:0> vault = glacier.vaults.get 'Aperture' | |
irb(main):005:0> vault.archives.create body: File.new('2006.apvault.tgz'), multipart_chunk_size: 1024*1024 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment