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