Sha256: 403ef26adc1a5992b741e2eee1952de757ee20782ffbb63790802ae715e02e04
Contents?: true
Size: 685 Bytes
Versions: 1
Compression:
Stored size: 685 Bytes
Contents
def upload_glacier_archive(contents) @response = @glacier.upload_archive( vault_name: @vault_name, account_id: '-', body: contents) @archive_id = @response.archive_id end When(/^I upload an archive with the contents "(.*?)"$/) do |contents| upload_glacier_archive(contents) end When(/^I upload an archive from a (\d+\.\d+)MB large file$/) do |size| file = Tempfile.new('aws-sdk-core-glacier-sample') file.write('.' * (1024 * 1024 * size.to_f).to_i) file.rewind upload_glacier_archive(file) end Then(/^I should be able to delete the archive$/) do @glacier.delete_archive( vault_name: @vault_name, account_id: '-', archive_id: @archive_id) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aws-sdk-core-2.0.0.rc1 | features/glacier/step_definitions.rb |