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

Merge pull request #47 from phd0/patch-1

add some log text on bulk_export rake function
This commit is contained in:
Sylvain 2016-09-29 21:29:13 +02:00 committed by GitHub
commit 1e81de40ed

View File

@ -1,9 +1,11 @@
namespace :fablab do
namespace :openlab do
desc 'bulk and export projects 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."