Skip to content

Commit

Permalink
whoops, if we want to add multiple people to orgs, split it
Browse files Browse the repository at this point in the history
  • Loading branch information
brntbeer committed Aug 8, 2017
1 parent b8806b1 commit c2a54b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion add-to-org.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ def get_team_id(team_name, org)

# If they just want to add users as members, skip the team
def add_to_org(org, username)
@client.update_organization_membership(org, {:user => username})
username.split(",").each do |name|
@client.update_organization_membership(org, {:user => name})
puts "#{name} added to #{org}."
end
end

begin
Expand Down

0 comments on commit c2a54b2

Please sign in to comment.