mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-11 00:52:29 +01:00
14 lines
364 B
Ruby
14 lines
364 B
Ruby
namespace :fablab do
|
|
namespace :openlab do
|
|
task bulk_export: :environment do
|
|
if Rails.application.secrets.openlab_app_secret.present?
|
|
Project.find_each do |project|
|
|
project.openlab_create
|
|
end
|
|
else
|
|
warn "Rails.application.secrets.openlab_app_secret not present. Export can't be done."
|
|
end
|
|
end
|
|
end
|
|
end
|