class MavisCLI::Users::Create
Public Instance Methods
Source
# File app/lib/mavis_cli/users/create.rb, line 16 def call( workgroup:, email:, password:, given_name:, family_name:, fallback_role: ) MavisCLI.load_rails team = Team.find_by(workgroup:) if team.nil? warn "Could not find team." return end user = team.users.create!( email:, password:, given_name:, family_name:, fallback_role: ) puts "New #{user.email} user with ID #{user.id} created." end