Skip to content

Instantly share code, notes, and snippets.

@hennevogel
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hennevogel/05c2e0b6471488955985 to your computer and use it in GitHub Desktop.
Save hennevogel/05c2e0b6471488955985 to your computer and use it in GitHub Desktop.
roles = %w(participant admin organizer)
users = %w(hans fred fritz)
conferences = %w(osc13 dsp14 lala)
roles.each do |role|
users.each do |user|
conferences.each do |conf|
if role == "organizer" || role == 'admin'
puts "YO YO YO"
else
puts "#{user}.add_role #{role}, #{conf}"
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment