Welcome to mirror list, hosted at ThFree Co, Russian Federation.

11_keys.rb « development « fixtures « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 61329f197c3f7d89f8a1d02b7bf8954fe16097bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Gitlab::Seeder.quiet do
  User.first(30).each_with_index do |user, i|
    Key.seed(:id, [
      {
        id: i + 1,
        title: "Sample key #{i}",
        key: "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt#{i + 100}6k6YjzGGphH2TUxwKzxcKDKKezwkpfnxPkSMkuEspGRt/aZZ9wa++Oi7Qkr8prgHc4soW6NUlfDzpvZK2H5E7eQaSeP3SAwGmQKUFHCddNaP0L+hM7zhFNzjFvpaMgJw0=",
        user_id: user.id,
      }
    ])
    puts "SSH KEY ##{i} added.".green
  end
end