foreplay 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.hound.yml +1 -1
- data/lib/foreplay/deploy.rb +10 -3
- 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: 3f1b2bda404690e119118753cd5f3e2a88210b56
|
4
|
+
data.tar.gz: 2b9c918dfe45e9fc3d007cfe2dd9552ab9459b17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 566c13c8fa3f06b6ac3782f660e8e4a8c8168fd052df67dc58794ffdb9aa0463e1cbf7b2e176059d5ddc4a64c187437858bd35db89124580928c7e366ce3445b
|
7
|
+
data.tar.gz: 89dfa127721b6fa80b90773a7f2d3adbba6b68d3ebec483cb3cae3c91839d43d5358c21c0fe8f2a2b4b72364b3d1b9ee267ae8012c92d9953041a8d52b09b20b
|
data/.hound.yml
CHANGED
data/lib/foreplay/deploy.rb
CHANGED
@@ -157,6 +157,9 @@ module Foreplay
|
|
157
157
|
|
158
158
|
# Commands to execute on remote server
|
159
159
|
steps = [
|
160
|
+
{ command: "echo Foreplay version #{VERSION} running from #{`hostname -f`}" \
|
161
|
+
"#{`which foreman`}",
|
162
|
+
commentary: 'Announcing myself' },
|
160
163
|
{ command: "mkdir -p #{path} && cd #{path} && rm -rf #{current_port} "\
|
161
164
|
"&& git clone -b #{branch} #{repository} #{current_port}",
|
162
165
|
commentary: "Cloning #{branch} branch of repository #{repository}" },
|
@@ -192,14 +195,18 @@ module Foreplay
|
|
192
195
|
commentary: 'Building config/resque.yml',
|
193
196
|
before: environment,
|
194
197
|
path: 'config/' },
|
195
|
-
{ command: 'if [ -d ../cache/vendor/bundle ] ; then
|
196
|
-
' ; else echo No
|
198
|
+
{ command: 'if [ -d ../cache/vendor/bundle/bundle ] ; then rm -rf ../cache/vendor/bundle/bundle'\
|
199
|
+
' ; else echo No evidence of legacy copy bug ; fi',
|
200
|
+
commentary: 'Fixing legacy copy bug' },
|
201
|
+
{ command: 'if [ -d ../cache/vendor/bundle ] ; then rsync -avW --no-compress --delete'\
|
202
|
+
' ../cache/vendor/bundle/ vendor/bundle ; else echo No bundle to restore ; fi',
|
197
203
|
commentary: 'Attempting to restore bundle from cache' },
|
198
204
|
{ command: 'sudo ln -f `which bundle` /usr/bin/bundle || echo Using default version of bundle',
|
199
205
|
commentary: 'Setting the current version of bundle to be the default' },
|
200
206
|
{ command: 'bundle install --deployment --clean --jobs 2 --without development test',
|
201
207
|
commentary: 'Using bundler to install the required gems in deployment mode' },
|
202
|
-
{ command: 'mkdir -p ../cache/vendor &&
|
208
|
+
{ command: 'mkdir -p ../cache/vendor && rsync -avW --no-compress --delete'\
|
209
|
+
' vendor/bundle/ ../cache/vendor/bundle',
|
203
210
|
commentary: 'Caching bundle' },
|
204
211
|
{ command: 'if [ -f public/assets/manifest.yml ] ; then echo "Not precompiling assets"'\
|
205
212
|
" ; 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 -avW --no-compress --delete ../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 -avW --no-compress --delete 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.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Xenapto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|