BigW Consortium Gitlab

11_keys.rb 397 Bytes
Newer Older
1
Gitlab::Seeder.quiet do
2 3 4 5 6 7 8 9 10
  User.first(10).each do |user|
    key = "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt#{user.id + 100}6k6YjzGGphH2TUxwKzxcKDKKezwkpfnxPkSMkuEspGRt/aZZ9wa++Oi7Qkr8prgHc4soW6NUlfDzpvZK2H5E7eQaSeP3SAwGmQKUFHCddNaP0L+hM7zhFNzjFvpaMgJw0="

    user.keys.create(
      title: "Sample key #{user.id}",
      key: key
    )

    print '.'
11 12
  end
end