foreplay 0.5.4 → 0.6.0
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 +4 -4
- data/.hound.yml +1 -1
- data/lib/foreplay/deploy.rb +5 -4
- data/lib/foreplay/version.rb +1 -1
- data/spec/lib/foreplay/deploy_spec.rb +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b7ea912d964e8739bbc47f12b5e7e8af8412de4d
|
|
4
|
+
data.tar.gz: 4b6549c8b798076018f4666baeb2fe30c2da0012
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b9f95cbc6f08acfe5dcaff62282bb007c741eb9cb2a1ac4521d9939a428664565596379220038e05d1dbf3f34e9b790366364bda621cbfd378476719cb48bd78
|
|
7
|
+
data.tar.gz: f804ec1bf034d722705886df6b75d0a236bebc69640a61ced31a40b70eb9e568e1d7616cf16bd210185034862fcb545dc6124448b1a4c8170fccf63f45876be3
|
data/.hound.yml
CHANGED
data/lib/foreplay/deploy.rb
CHANGED
|
@@ -164,8 +164,6 @@ module Foreplay
|
|
|
164
164
|
commentary: 'Trusting the .rvmrc file for the new instance' },
|
|
165
165
|
{ command: "rvm rvmrc warning ignore #{current_port}",
|
|
166
166
|
commentary: 'Ignoring the .rvmrc warning for the new instance' },
|
|
167
|
-
{ command: 'gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3',
|
|
168
|
-
commentary: "Trusting RVM's public key" },
|
|
169
167
|
{ command: "cd #{current_port} && mkdir -p tmp doc log config",
|
|
170
168
|
commentary: 'If you have a .rvmrc file there may be a delay now while we install a new ruby' },
|
|
171
169
|
{ command: 'if [ -f .ruby-version ] ; then rvm install `cat .ruby-version` ; '\
|
|
@@ -192,14 +190,17 @@ module Foreplay
|
|
|
192
190
|
commentary: 'Building config/resque.yml',
|
|
193
191
|
before: environment,
|
|
194
192
|
path: 'config/' },
|
|
195
|
-
{ command: 'if [ -d ../cache/vendor/bundle ] ; then
|
|
193
|
+
{ command: 'if [ -d ../cache/vendor/bundle/bundle ] ; then rm -rf ../cache/vendor/bundle/bundle'\
|
|
194
|
+
' ; else echo No evidence of legacy copy bug ; fi',
|
|
195
|
+
commentary: 'Fixing legacy copy bug' },
|
|
196
|
+
{ command: 'if [ -d ../cache/vendor/bundle ] ; then rsync -aW --no-compress ../cache/vendor/bundle/ vendor/bundle'\
|
|
196
197
|
' ; else echo No bundle to restore ; fi',
|
|
197
198
|
commentary: 'Attempting to restore bundle from cache' },
|
|
198
199
|
{ command: 'sudo ln -f `which bundle` /usr/bin/bundle || echo Using default version of bundle',
|
|
199
200
|
commentary: 'Setting the current version of bundle to be the default' },
|
|
200
201
|
{ command: 'bundle install --deployment --clean --jobs 2 --without development test',
|
|
201
202
|
commentary: 'Using bundler to install the required gems in deployment mode' },
|
|
202
|
-
{ command: 'mkdir -p ../cache/vendor &&
|
|
203
|
+
{ command: 'mkdir -p ../cache/vendor && rsync -av --no-compress vendor/bundle/ ../cache/vendor/bundle',
|
|
203
204
|
commentary: 'Caching bundle' },
|
|
204
205
|
{ command: 'if [ -f public/assets/manifest.yml ] ; then echo "Not precompiling assets"'\
|
|
205
206
|
" ; else RAILS_ENV=#{environment} bundle exec foreman run rake assets:precompile ; fi",
|
data/lib/foreplay/version.rb
CHANGED
|
@@ -111,11 +111,13 @@ describe Foreplay::Deploy do
|
|
|
111
111
|
'echo " host: TODO Put here the database host name" >> config/database.yml',
|
|
112
112
|
'echo " username: TODO Put here the database user" >> config/database.yml',
|
|
113
113
|
'echo " password: TODO Put here the database user\'s password" >> config/database.yml',
|
|
114
|
-
'if [ -d ../cache/vendor/bundle ] ; then
|
|
114
|
+
'if [ -d ../cache/vendor/bundle/bundle ] ; then rm -rf ../cache/vendor/bundle/bundle'\
|
|
115
|
+
' ; else echo No evidence of legacy copy bug ; fi',
|
|
116
|
+
'if [ -d ../cache/vendor/bundle ] ; then rsync -aW --no-compress ../cache/vendor/bundle/ vendor/bundle'\
|
|
115
117
|
' ; else echo No bundle to restore ; fi',
|
|
116
118
|
'sudo ln -f `which bundle` /usr/bin/bundle || echo Using default version of bundle',
|
|
117
119
|
'bundle install --deployment --clean --jobs 2 --without development test',
|
|
118
|
-
'mkdir -p ../cache/vendor &&
|
|
120
|
+
'mkdir -p ../cache/vendor && rsync -av --no-compress vendor/bundle/ ../cache/vendor/bundle',
|
|
119
121
|
'if [ -f public/assets/manifest.yml ] ; then echo "Not precompiling assets"'\
|
|
120
122
|
' ; else RAILS_ENV=production bundle exec foreman run rake assets:precompile ; fi',
|
|
121
123
|
'sudo bundle exec foreman export upstart /etc/init',
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: foreplay
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Xenapto
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-10-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|