1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/lib/tasks/fablab/openlab.rake

16 lines
435 B
Ruby
Raw Normal View History

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."
end
end
end
end