Method: Sem::API::Team#add_user

Defined in:
lib/sem/api/team.rb

#add_user(username) ⇒ Object



50
51
52
53
54
# File 'lib/sem/api/team.rb', line 50

def add_user(username)
  Sem::API::Base.client.users.attach_to_team!(username, id)
rescue SemaphoreClient::Exceptions::NotFound
  raise Sem::Errors::ResourceNotFound.new("User", [username])
end