Sha256: ca6651f88c1484b1ac64cbddad47fc1312611eb4e33fbf5ba6197cb962cbd36f
Contents?: true
Size: 672 Bytes
Versions: 19
Compression:
Stored size: 672 Bytes
Contents
class Eco::API::UseCases::DefaultCases::SetSupervisorCase < Eco::API::Common::Loaders::UseCase name "set-supervisor" type :sync def main(entries, people, session, options, usecase) micro = session.micro update = session.new_job("main", "update", :update, usecase) micro.with_each_present(entries, people, options, log_starter: true) do |entry, person| if entry.supervisor_id? micro.set_supervisor(person, entry.supervisor_id, people, options) do |unknown_id| session.logger.warn("Supervisor '#{entry.supervisor_id}' does not exist. Entry: #{entry.to_s(:identify)}") end end end end end
Version data entries
19 entries across 19 versions & 1 rubygems