Sha256: 24a569aa149b7745a0c2aacd507edcc6afdad7e666f0d312c3866c62b733c387

Contents?: true

Size: 468 Bytes

Versions: 9

Compression:

Stored size: 468 Bytes

Contents

# desc "Explaining what the task does"
# task :thecore_auth_commons do
#   # Task goes here
# end
namespace :thecore do
    namespace :db do
        desc "Load seeds from thecore engines seed files, it also runs rails db:seed as last action"
        task seed: :environment do
            Thecore::Base.thecore_engines.each { |engine| engine.send :load_seed }
            Rake::Task["db:seed"].reenable
            Rake::Task["db:seed"].invoke
        end
    end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
thecore_auth_commons-2.4.0 lib/tasks/thecore_auth_commons_tasks.rake
thecore_auth_commons-2.3.9 lib/tasks/thecore_auth_commons_tasks.rake
thecore_auth_commons-2.3.8 lib/tasks/thecore_auth_commons_tasks.rake
thecore_auth_commons-2.3.7 lib/tasks/thecore_auth_commons_tasks.rake
thecore_auth_commons-2.3.6 lib/tasks/thecore_auth_commons_tasks.rake
thecore_auth_commons-2.3.5 lib/tasks/thecore_auth_commons_tasks.rake
thecore_auth_commons-2.3.4 lib/tasks/thecore_auth_commons_tasks.rake
thecore_auth_commons-2.3.3 lib/tasks/thecore_auth_commons_tasks.rake
thecore_auth_commons-2.3.2 lib/tasks/thecore_auth_commons_tasks.rake