summaryrefslogtreecommitdiff
path: root/config/initializers
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-22 12:16:56 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-22 12:16:56 +0100
commit69b5f3dcbeb0ddd4d28c516042a1c23117ffdae5 (patch)
treee6ec723db8fdb7f19266837aa840cece8993adc9 /config/initializers
parentee6b680da282d9fe4d630ba27d9f9c646eed24dc (diff)
parent52589919782d938a0ae007439a8d1a17a1056838 (diff)
Merge branch 'develop' of github.com:amooma/GS5 into develop
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/update_gs_version_number.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/initializers/update_gs_version_number.rb b/config/initializers/update_gs_version_number.rb
index 4770858..d9e1aae 100644
--- a/config/initializers/update_gs_version_number.rb
+++ b/config/initializers/update_gs_version_number.rb
@@ -7,3 +7,10 @@ if !ENV['GS_VERSION'].nil? && GsParameter.table_exists? && GsParameter.get('GEME
version.value = ENV['GS_VERSION']
version.save
end
+
+if !ENV['GS_BUILDNAME'].nil? && GsParameter.table_exists? && GsParameter.get('GS_BUILDNAME') != ENV['GS_BUILDNAME']
+ buildname = GsParameter.find_or_create_by_name('GEMEINSCHAFT_BUILDNAME')
+ buildname.section = 'Generic'
+ buildname.value = ENV['GS_BUILDNAME']
+ buildname.save
+end