lib/tasks/masks_tasks.rake in masks-0.3.2 vs lib/tasks/masks_tasks.rake in masks-0.4.0

- old
+ new

@@ -35,20 +35,20 @@ if !args[:actor] || !args[:scopes] puts "specify an actor and scopes, e.g. masks:assign_scopes[@foo,scope1;scope2;scope3]" exit 1 end - scopes = args[:scopes].split(';') + scopes = args[:scopes].split(";") access = cli_access("actor.scopes", as: args[:actor]) access&.assign_scopes(scopes) if !access puts "could not find actor..." elsif access.actor.invalid? puts "failed to assign scopes to '#{access.actor.nickname}'" puts "error: #{access.actor.errors.full_messages.join(", ")}" else - puts "assigned scopes '#{scopes.join(', ')}' to '#{access.actor.nickname}'" + puts "assigned scopes '#{scopes.join(", ")}' to '#{access.actor.nickname}'" end end task :change_password, %i[actor password] => :boot do |_task, args| if !args[:actor] || !args[:password]