foreplay 0.3.6 → 0.4.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 +6 -1
- data/lib/foreplay/version.rb +1 -1
- data/spec/lib/foreplay/deploy_spec.rb +4 -1
- 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: ee88ad42e587a894fb2ab1f98bcb38a8f5758d7b
|
|
4
|
+
data.tar.gz: e551d3e61d6789701d0d1efdd5445dc63b37e622
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ae3da7389f217524a5cfb0b93a5e87bcd04d233c0957335f71be86b8c39dc7042bd182cb5f8dae078c196cf497a9b6a643a4cfb5acb90d9ba55921b107828b8b
|
|
7
|
+
data.tar.gz: dec9d24d0f366b77e5c04aa941827e60a06b8c37cd92e2e32b6a88562ef105023d0b8ac2ea46525ff3dd97c8d8caed4dad4cbdd63fbefecd98f21a720441f013
|
data/.hound.yml
CHANGED
data/lib/foreplay/deploy.rb
CHANGED
|
@@ -186,10 +186,15 @@ module Foreplay
|
|
|
186
186
|
commentary: 'Building config/resque.yml',
|
|
187
187
|
before: environment,
|
|
188
188
|
path: 'config/' },
|
|
189
|
+
{ command: 'if [ -d ../cache/vendor/bundle ] ; then cp -rf ../cache/vendor/bundle vendor/bundle'\
|
|
190
|
+
' ; else echo No bundle to restore ; fi',
|
|
191
|
+
commentary: 'Attempting to restore bundle from cache' },
|
|
189
192
|
{ command: 'sudo ln -f `which bundle` /usr/bin/bundle || echo Using default version of bundle',
|
|
190
193
|
commentary: 'Setting the current version of bundle to be the default' },
|
|
191
|
-
{ command: 'bundle install --deployment --without development test',
|
|
194
|
+
{ command: 'bundle install --deployment --clean --jobs 2 --without development test',
|
|
192
195
|
commentary: 'Using bundler to install the required gems in deployment mode' },
|
|
196
|
+
{ command: 'mkdir -p ../cache && cp -rf vendor/bundle ../cache/vendor/bundle',
|
|
197
|
+
commentary: 'Caching bundle' },
|
|
193
198
|
{ command: 'if [ -f public/assets/manifest.yml ] ; then echo "Not precompiling assets"'\
|
|
194
199
|
" ; else RAILS_ENV=#{environment} bundle exec foreman run rake assets:precompile ; fi",
|
|
195
200
|
commentary: 'Precompiling assets unless they were supplied' },
|
data/lib/foreplay/version.rb
CHANGED
|
@@ -107,8 +107,11 @@ describe Foreplay::Deploy do
|
|
|
107
107
|
'echo " host: TODO Put here the database host name" >> config/database.yml',
|
|
108
108
|
'echo " username: TODO Put here the database user" >> config/database.yml',
|
|
109
109
|
'echo " password: TODO Put here the database user\'s password" >> config/database.yml',
|
|
110
|
+
'if [ -d ../cache/vendor/bundle ] ; then cp -rf ../cache/vendor/bundle vendor/bundle'\
|
|
111
|
+
' ; else echo No bundle to restore ; fi',
|
|
110
112
|
'sudo ln -f `which bundle` /usr/bin/bundle || echo Using default version of bundle',
|
|
111
|
-
'bundle install --deployment --without development test',
|
|
113
|
+
'bundle install --deployment --clean --jobs 2 --without development test',
|
|
114
|
+
'mkdir -p ../cache && cp -rf vendor/bundle ../cache/vendor/bundle',
|
|
112
115
|
'if [ -f public/assets/manifest.yml ] ; then echo "Not precompiling assets"'\
|
|
113
116
|
' ; else RAILS_ENV=production bundle exec foreman run rake assets:precompile ; fi',
|
|
114
117
|
'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.4.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-08-
|
|
11
|
+
date: 2014-08-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|