1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-17 06:52:27 +01:00

add some log text on bulk_export rake function

ajout d'une description pour faire apparaitre cette fonction dans la liste
This commit is contained in:
DULAC Philippe 2016-09-29 20:50:27 +02:00 committed by GitHub
parent fc747c55c7
commit 7e16dd2a0a

View File

@ -1,9 +1,11 @@
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."