From e7e1e99e92cfaf6757a1e4e25260eaca1b3b33a0 Mon Sep 17 00:00:00 2001 From: Hugo Duksis Date: Mon, 19 Nov 2012 21:58:54 +0200 Subject: [PATCH] retrieve settings with symbols --- lib/tasks/gitlab/backup.rake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/tasks/gitlab/backup.rake b/lib/tasks/gitlab/backup.rake index 06d7cb65..c01fe479 100644 --- a/lib/tasks/gitlab/backup.rake +++ b/lib/tasks/gitlab/backup.rake @@ -82,14 +82,14 @@ namespace :gitlab do end settings = YAML.load_file("backup_information.yml") - ENV["VERSION"] = "#{settings["db_version"]}" if settings["db_version"].to_i > 0 + ENV["VERSION"] = "#{settings[:db_version]}" if settings[:db_version].to_i > 0 # restoring mismatching backups can lead to unexpected problems - if settings["gitlab_version"] != %x{git rev-parse HEAD}.gsub(/\n/,"") + if settings[:gitlab_version] != %x{git rev-parse HEAD}.gsub(/\n/,"") puts "gitlab_version mismatch:".red puts " Your current HEAD differs from the HEAD in the backup!".red puts " Please switch to the following revision and try again:".red - puts " revision: #{settings["gitlab_version"]}".red + puts " revision: #{settings[:gitlab_version]}".red exit 1 end