1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-03-01 23:29:23 +01:00
fab-manager/lib/tasks/fablab/openlab.rake
DULAC Philippe 7e16dd2a0a add some log text on bulk_export rake function
ajout d'une description pour faire apparaitre cette fonction dans la liste
2016-09-29 20:50:27 +02:00

16 lines
435 B
Ruby

namespace :fablab do
namespace :openlab do
desc 'bulk and export project to openlab'
task bulk_export: :environment do
if Rails.application.secrets.openlab_app_secret.present?
Project.find_each do |project|
project.openlab_create
puts '-> Done'
end
else
warn "Rails.application.secrets.openlab_app_secret not present. Export can't be done."
end
end
end
end