lib/motor/tasks/motor.rake in motor-admin-0.1.39 vs lib/motor/tasks/motor.rake in motor-admin-0.1.40
- old
+ new
@@ -7,9 +7,17 @@
Motor::Configs::WriteToFile.write_with_lock
puts '✅ configs/motor.yml has been updated'
end
+ desc 'Load configs from configs/motor.yml file'
+
+ task load: :environment do
+ Motor::Configs::SyncFromFile.call(with_exception: true)
+
+ puts '✅ configs have been loaded from configs/motor.yml'
+ end
+
desc 'Synchronize configs with remote application'
task sync: :environment do
remote_url = ENV['MOTOR_SYNC_REMOTE_URL']
api_key = ENV['MOTOR_SYNC_API_KEY']