class AwsTestDump::S3FileRestore

Public Instance Methods

file_contents() click to toggle source
# File lib/aws_test_dump.rb, line 125
def file_contents
  if @file_contents.nil?
    @file_contents = File.read(@dump_file)
  end
  @file_contents
end
restore() click to toggle source
# File lib/aws_test_dump.rb, line 132
def restore
  @s3_client.create_bucket({bucket: @bucket_name})
  @s3_client.put_object({bucket: @bucket_name, key: @key_name, body: file_contents})
end
run() click to toggle source
# File lib/aws_test_dump.rb, line 121
def run
  restore
end