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:
parent
fc747c55c7
commit
7e16dd2a0a
@ -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."
|
||||
|
Loading…
x
Reference in New Issue
Block a user