Skip to content

Commit

Permalink
Update motor.rake (#160)
Browse files Browse the repository at this point in the history
Add missing rake task descriptions
  • Loading branch information
stefsava authored Jun 1, 2024
1 parent 89392a5 commit 24bd9fb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/motor/tasks/motor.rake
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# frozen_string_literal: true

namespace :motor do
desc 'Update configs/motor.yml file'
desc 'Create migratione and add route'

task install: :environment do
Rails::Generators.invoke('motor:install')
end

desc 'Update configs/motor.yml file'

task dump: :environment do
Motor::Configs::WriteToFile.write_with_lock

Expand All @@ -21,6 +23,8 @@ namespace :motor do
puts '✅ configs have been loaded from configs/motor.yml'
end

desc 'Reload configs from configs/motor.yml file'

task reload: :environment do
ActiveRecord::Base.transaction do
Motor::Configs.clear
Expand Down

0 comments on commit 24bd9fb

Please sign in to comment.