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

19 lines
492 B
Ruby
Raw Normal View History

2019-02-13 12:59:28 +01:00
# frozen_string_literal: true
# OpenLab Projects tasks
namespace :fablab do
namespace :openlab do
2016-09-29 21:28:51 +02:00
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."
end
end
end
end