Sha256: b57a5fda7985614254c398db25bb0f7c1d3faa7d992f087efe68e79380a23de8
Contents?: true
Size: 1.16 KB
Versions: 43
Compression:
Stored size: 1.16 KB
Contents
# desc "Explaining what the task does" # task :daengine do # # Task goes here # end require 'daengine' namespace :daengine do desc 'Seeding digital assets in database' task :seed_assets, [:config_file] => :environment do |t, args| puts "--------------------------------------" #puts args.config_file config = YAML::load_file(args.config_file)[EDIST_ENV['env']] Daengine.execute(config) puts 'Seeding digital assets in database complete' end desc 'Seeding taxonomy in database' task :seed_taxonomy, [:config_file] => :environment do |t, args| puts "--------------------------------------" #puts args.config_file config = YAML::load_file(args.config_file)[EDIST_ENV['env']] Daengine.execute_taxonomy(config) puts 'Seeding taxonomy in database complete' end desc 'Seeding asset availability in database' task :seed_availability, [:config_file] => :environment do |t, args| puts "--------------------------------------" #puts args.config_file config = YAML::load_file(args.config_file)[EDIST_ENV['env']] Daengine.execute_content_service(config) puts 'Seeding asset availability in database complete' end end
Version data entries
43 entries across 43 versions & 1 rubygems