Sha256: 4edbe9e11c0464d005a55dbe6040a3f9e0faaa1a4fa87a9bd4558a8fd7d1d420

Contents?: true

Size: 398 Bytes

Versions: 6

Compression:

Stored size: 398 Bytes

Contents

namespace :siringa do
  desc "Load a definition and populate the DB with seed data"
  task :load, [:definition] do |t, args|
    args.with_defaults :definition => :initial
    Rake::Task["environment"].invoke
    puts <<-EOS
    This will load #{args[:definition]} definition and populate the DB for #{Rails.env} environment.
    EOS
    Siringa.load_definition(args[:definition].to_sym)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
siringa-0.0.7 lib/tasks/siringa_tasks.rake
siringa-0.0.6 lib/tasks/siringa_tasks.rake
siringa-0.0.5 lib/tasks/siringa_tasks.rake
siringa-0.0.4 lib/tasks/siringa_tasks.rake
siringa-0.0.3 lib/tasks/siringa_tasks.rake
siringa-0.0.1 lib/tasks/siringa_tasks.rake