brpm_content_framework 0.2.59 → 0.2.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/config.yml +1 -1
- data/infrastructure/scripts/patch_brpm.sh +4 -8
- data/infrastructure/scripts/restore_database.sh +2 -2
- data/lib/brpm_script_executor.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
MjQ0MDRlYmU5M2Y4ODUxZDZhMTFlM2MxMzkwYzc5N2E4NWJlNDZlNw==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
MzAxMmY3NGQwZTgxM2NkZDNkYTE5MmE3MDQzZmM5YTUzZmU0ODA2OQ==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
YjZhNzZlNGE5ZjJkNDYyMzcxMDVhNjE2M2JhZTU5NjY1Zjc5ZjNjNGE2ODUz
|
|
10
|
+
OTUyMThmY2UyOWIyOTEzYjNlYTZkMjkzZDAzZTJhMzNmNTQ4ODk0ZGUyMDUy
|
|
11
|
+
ODgyYTg5MDg4ODRjMzI4ZWY0ODIxOTg5OWY0ZjE3MDU4YzljNWU=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
ZTkwM2YzZjQ3MmFlMTc4NjMyOTdiODE0ZjAzNjNhYzI0MzRkNTc0Zjg1MmQ5
|
|
14
|
+
YjFjMjRkNWVjMTBiMjNiMTMxYzJiY2Q0Nzg1ZGVjNGMzYTRlNTc3NWU5Y2Y5
|
|
15
|
+
OWU3MjRhN2JiYTFhM2QyYmM1ZjQ1NGYxMzhiZTY1MzkzMjhiODE=
|
data/config.yml
CHANGED
|
@@ -37,7 +37,7 @@ $(dirname $0)/backup_database.sh
|
|
|
37
37
|
echo ""
|
|
38
38
|
|
|
39
39
|
echo "Stopping BRPM..."
|
|
40
|
-
/etc/init.d/bmcrpm-4.
|
|
40
|
+
/etc/init.d/bmcrpm-4.8.00 stop
|
|
41
41
|
|
|
42
42
|
OLD_VERSION=$(eval "sed -n \"s= root: $BRPM_HOME/releases/\(.*\)/RPM=\1=p\" $BRPM_HOME/server/jboss/standalone/deployments/RPM-knob.yml")
|
|
43
43
|
|
|
@@ -56,10 +56,6 @@ echo "Copying over the config files from $BRPM_HOME/releases/$OLD_VERSION/RPM/co
|
|
|
56
56
|
/bin/cp $BRPM_HOME/releases/$OLD_VERSION/RPM/config/wicked_pdf_config.rb $BRPM_HOME/releases/$NEW_VERSION/RPM/config
|
|
57
57
|
/bin/cp $BRPM_HOME/releases/$OLD_VERSION/RPM/config/carrierwave_settings.rb $BRPM_HOME/releases/$NEW_VERSION/RPM/config
|
|
58
58
|
|
|
59
|
-
if [ -d $BRPM_HOME/releases/$OLD_VERSION/RPM/lib/script_support/git_repos ]; then
|
|
60
|
-
/bin/cp -R $BRPM_HOME/releases/$OLD_VERSION/RPM/lib/script_support/git_repos $BRPM_HOME/releases/$NEW_VERSION/RPM/lib/script_support
|
|
61
|
-
fi
|
|
62
|
-
|
|
63
59
|
echo "Replacing the version number in RPM-knob.yml ..."
|
|
64
60
|
sed -i -e s/$OLD_VERSION/$NEW_VERSION/g $BRPM_HOME/server/jboss/standalone/deployments/RPM-knob.yml
|
|
65
61
|
|
|
@@ -71,8 +67,8 @@ sed -i -e s/$DEFAULT_HOSTNAME/$PREVIOUS_HOSTNAME/g $BRPM_HOME/releases/$NEW_VERS
|
|
|
71
67
|
. $BRPM_HOME/bin/setenv.sh
|
|
72
68
|
cd $BRPM_HOME/releases/$NEW_VERSION/RPM/config
|
|
73
69
|
|
|
74
|
-
echo "Updating gems..."
|
|
75
|
-
jruby -S bundle install
|
|
70
|
+
#echo "Updating gems..."
|
|
71
|
+
#jruby -S bundle install
|
|
76
72
|
|
|
77
73
|
echo "Migrating the database..."
|
|
78
74
|
jruby -S rake --verbose db:migrate RAILS_ENV=production
|
|
@@ -81,7 +77,7 @@ echo "Patch $NEW_VERSION was applied successfully."
|
|
|
81
77
|
echo "Note that any customizations that may have been done to the torquebox.yml file must be redone manually: $BRPM_HOME/releases/$NEW_VERSION/RPM/config/torquebox.yml"
|
|
82
78
|
|
|
83
79
|
echo "Restarting BRPM..."
|
|
84
|
-
/etc/init.d/bmcrpm-4.
|
|
80
|
+
/etc/init.d/bmcrpm-4.8.00 start
|
|
85
81
|
|
|
86
82
|
echo "Done."
|
|
87
83
|
|
|
@@ -16,7 +16,7 @@ BRPM_DB_NAME=bmc_rpm_db
|
|
|
16
16
|
BRPM_DB_USER=rlm_user
|
|
17
17
|
|
|
18
18
|
echo "Stopping BRPM..."
|
|
19
|
-
/etc/init.d/bmcrpm-4.
|
|
19
|
+
/etc/init.d/bmcrpm-4.8.00 stop
|
|
20
20
|
|
|
21
21
|
echo "Dropping existing database $BRPM_DB_NAME..."
|
|
22
22
|
$BRPM_HOME/pgsql/bin/dropdb -U $BRPM_DB_USER $BRPM_DB_NAME
|
|
@@ -28,6 +28,6 @@ echo "Restoring database from $DUMP_FILE to $BRPM_DB_NAME..."
|
|
|
28
28
|
$BRPM_HOME/pgsql/bin/psql -U $BRPM_DB_USER -d $BRPM_DB_NAME -f $DUMP_FILE
|
|
29
29
|
|
|
30
30
|
echo "Restarting BRPM..."
|
|
31
|
-
/etc/init.d/bmcrpm-4.
|
|
31
|
+
/etc/init.d/bmcrpm-4.8.00 start
|
|
32
32
|
|
|
33
33
|
echo "Done."
|
data/lib/brpm_script_executor.rb
CHANGED
|
@@ -94,7 +94,7 @@ class BrpmScriptExecutor
|
|
|
94
94
|
gemfile_path = "#{module_path}/Gemfile"
|
|
95
95
|
if File.exists?(gemfile_path)
|
|
96
96
|
BrpmAuto.log "Using Gemfile #{gemfile_path}."
|
|
97
|
-
env_var_bundler = "export BUNDLE_GEMFILE=#{gemfile_path} && "
|
|
97
|
+
env_var_bundler = "export BUNDLE_GEMFILE=#{gemfile_path} && export BRPM_CONTENT_FRAMEWORK_DEPLOYMENT=true && "
|
|
98
98
|
require_bundler = "require 'bundler/setup';"
|
|
99
99
|
else
|
|
100
100
|
BrpmAuto.log("This module doesn't have a Gemfile.")
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: brpm_content_framework
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.60
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Niek Bartholomeus
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-11-
|
|
11
|
+
date: 2015-11-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|