Class: Dynomite::Seed
- Inherits:
-
Object
- Object
- Dynomite::Seed
- Defined in:
- lib/dynomite/seed.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Seed
constructor
A new instance of Seed.
- #run ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Seed
Returns a new instance of Seed.
3 4 5 6 |
# File 'lib/dynomite/seed.rb', line 3 def initialize(={}) = Dynomite.config.log_level = :info unless ENV['DYNOMITE_DEBUG'] end |
Instance Method Details
#run ⇒ Object
8 9 10 11 |
# File 'lib/dynomite/seed.rb', line 8 def run file = "dynamodb/seeds.rb" load(file) if File.exist?(file) end |