Class: Jun::CLI::Commands::DB::Seed

Inherits:
Base show all
Defined in:
lib/jun/cli/commands/db/seed.rb

Instance Method Summary collapse

Methods inherited from Base

command_name

Instance Method Details

#process(*args) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/jun/cli/commands/db/seed.rb', line 8

def process(*args)
  seed_filepath = Jun.root.join("db/seed.rb")
  abort("No seed file found.") unless File.exist?(seed_filepath)

  load seed_filepath
  puts "Seeding complete."
end