def call(params)
results = []
client = params.gdc_gd_client
development_client = params.development_client
params.synchronize.peach do |info|
from = info.from
to = info.to
from_project = development_client.projects(from) || fail("Invalid 'from' project specified - '#{from}'")
to_projects = to.pmap do |project|
client.projects(project.pid)
end
GoodData::LCM.transfer_label_types(from_project, to_projects)
to_projects.each do |project|
results << {
from: from,
to: project.pid,
status: 'ok'
}
end
end
results
end