module Moe::Sequence::ModuleFunctions
Public Instance Methods
setup(name, copies, read_capacity, write_capacity)
click to toggle source
# File lib/moe/sequence.rb, line 5 def setup(name, copies, read_capacity, write_capacity) return "#{name} already exists in config" if Moe.config.tables[name] table_manager = TableManager.new tables = table_manager.build name, copies, "hash", "range", read_capacity, write_capacity Moe.config.tables[name] = tables end