Class: Dynomite::Seed

Inherits:
Object
  • Object
show all
Defined in:
lib/dynomite/seed.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Seed

Returns a new instance of Seed.



3
4
5
6
# File 'lib/dynomite/seed.rb', line 3

def initialize(options={})
  @options = options
  Dynomite.config.log_level = :info unless ENV['DYNOMITE_DEBUG']
end

Instance Method Details

#runObject



8
9
10
11
# File 'lib/dynomite/seed.rb', line 8

def run
  file = "dynamodb/seeds.rb"
  load(file) if File.exist?(file)
end