class AwsTestDump::DynamoSchemaRestore

Attributes

schemata[RW]

Public Class Methods

new(dump_file=nil) click to toggle source
Calls superclass method AwsTestDump::BaseDynamoProcessor::new
# File lib/aws_test_dump.rb, line 368
def initialize(dump_file=nil)
  super dump_file
  @schemata = nil
end

Public Instance Methods

create_tables() click to toggle source
# File lib/aws_test_dump.rb, line 377
def create_tables
  schemata.each do |schema|
    begin
      @dynamo_client.create_table(schema)
    rescue Aws::DynamoDB::Errors::ResourceInUseException
    end
  end
end
run() click to toggle source
# File lib/aws_test_dump.rb, line 373
def run
  create_tables
end