Commit e7e1e99e92cfaf6757a1e4e25260eaca1b3b33a0
1 parent
a8eb3fe1
Exists in
master
and in
4 other branches
retrieve settings with symbols
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
lib/tasks/gitlab/backup.rake
| ... | ... | @@ -82,14 +82,14 @@ namespace :gitlab do |
| 82 | 82 | end |
| 83 | 83 | |
| 84 | 84 | settings = YAML.load_file("backup_information.yml") |
| 85 | - ENV["VERSION"] = "#{settings["db_version"]}" if settings["db_version"].to_i > 0 | |
| 85 | + ENV["VERSION"] = "#{settings[:db_version]}" if settings[:db_version].to_i > 0 | |
| 86 | 86 | |
| 87 | 87 | # restoring mismatching backups can lead to unexpected problems |
| 88 | - if settings["gitlab_version"] != %x{git rev-parse HEAD}.gsub(/\n/,"") | |
| 88 | + if settings[:gitlab_version] != %x{git rev-parse HEAD}.gsub(/\n/,"") | |
| 89 | 89 | puts "gitlab_version mismatch:".red |
| 90 | 90 | puts " Your current HEAD differs from the HEAD in the backup!".red |
| 91 | 91 | puts " Please switch to the following revision and try again:".red |
| 92 | - puts " revision: #{settings["gitlab_version"]}".red | |
| 92 | + puts " revision: #{settings[:gitlab_version]}".red | |
| 93 | 93 | exit 1 |
| 94 | 94 | end |
| 95 | 95 | ... | ... |