app/jobs/assignment_repo/create_github_repository_job.rb
# Broadcasts a ActionCable message with a status to the given user
#
# rubocop:disable ParameterLists
Broadcasts a ActionCable message with a status to the given user
rubocop:disable ParameterLists
Broadcasts a ActionCable message with a status to the given user rubocop : disable ParameterLists
def broadcast_message(type: :text, message:, assignment:, user:, invite_status:, status_text:)
      raise ArgumentError unless %i[text error].include?(type)
      broadcast_args = {
        status: invite_status.status,
        status_text: status_text
      }
      broadcast_args[type] = message
      ActionCable.server.broadcast(
        RepositoryCreationStatusChannel.channel(user_id: user.id, assignment_id: assignment.id),
        broadcast_args
      )
    end
def broadcast_message ( type : :text , message : , assignment : , user : , invite_status : , status_text : ) raise ArgumentError unless %i[ text error ] . include? ( type ) broadcast_args = { status : invite_status . status , status_text : status_text } broadcast_args [ type ] = message ActionCable . server . broadcast ( RepositoryCreationStatusChannel . channel ( user_id : user . id , assignment_id : assignment . id ) , broadcast_args ) end
Broadcasts a ActionCable message with a status to the given user
rubocop:disable ParameterLists
Broadcasts a ActionCable message with a status to the given user rubocop : disable ParameterLists
type
<not_specific>
message
<not_specific>
assignment
<not_specific>
user
<not_specific>
invite_status
<not_specific>
status_text
<not_specific>