class AwsTestDump::DynamoSchemaDump
Attributes
schemata[RW]
table_names[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 326 def initialize(dump_file=nil) super dump_file @table_names = nil @schemata = nil end
Public Instance Methods
dump_schemata()
click to toggle source
# File lib/aws_test_dump.rb, line 336 def dump_schemata dirname = File.dirname(@dump_file) unless File.directory?(dirname) FileUtils.mkdir_p(dirname) end File.open(@dump_file, 'w') { |file| file.write schemata.to_yaml } end
run()
click to toggle source
# File lib/aws_test_dump.rb, line 332 def run dump_schemata end