foreplay 0.6.0 → 0.7.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 +4 -5
- data/lib/foreplay/version.rb +1 -1
- data/spec/lib/foreplay/deploy_spec.rb +2 -4
- 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: e3f9aff01fa7dd340b29e6b571e3bfddf438b4b3
|
|
4
|
+
data.tar.gz: 778ea56a90bf7a857ae6b295c82908f73024cc2a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2a217030959dfa535ce15c68f54093047e58e1538bafb75d32bbff8fb5ad427c4aa819220726a048d1455a0acf48aaf9e1f4ae00dbd91c6c261b1c33170978e1
|
|
7
|
+
data.tar.gz: bd00d25bf9f1116a6d475e82bc02a09eb48df104bdb682e3976e3f0c4b82b40baec1c76e501863eca51dd0c7226e12340750f8600660bbff0bbee87a75321a48
|
data/.hound.yml
CHANGED
data/lib/foreplay/deploy.rb
CHANGED
|
@@ -164,6 +164,8 @@ 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" },
|
|
167
169
|
{ command: "cd #{current_port} && mkdir -p tmp doc log config",
|
|
168
170
|
commentary: 'If you have a .rvmrc file there may be a delay now while we install a new ruby' },
|
|
169
171
|
{ command: 'if [ -f .ruby-version ] ; then rvm install `cat .ruby-version` ; '\
|
|
@@ -190,17 +192,14 @@ module Foreplay
|
|
|
190
192
|
commentary: 'Building config/resque.yml',
|
|
191
193
|
before: environment,
|
|
192
194
|
path: 'config/' },
|
|
193
|
-
{ command: 'if [ -d ../cache/vendor/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'\
|
|
195
|
+
{ command: 'if [ -d ../cache/vendor/bundle ] ; then cp -rf ../cache/vendor/bundle vendor/bundle'\
|
|
197
196
|
' ; else echo No bundle to restore ; fi',
|
|
198
197
|
commentary: 'Attempting to restore bundle from cache' },
|
|
199
198
|
{ command: 'sudo ln -f `which bundle` /usr/bin/bundle || echo Using default version of bundle',
|
|
200
199
|
commentary: 'Setting the current version of bundle to be the default' },
|
|
201
200
|
{ command: 'bundle install --deployment --clean --jobs 2 --without development test',
|
|
202
201
|
commentary: 'Using bundler to install the required gems in deployment mode' },
|
|
203
|
-
{ command: 'mkdir -p ../cache/vendor &&
|
|
202
|
+
{ command: 'mkdir -p ../cache/vendor && cp -rf vendor/bundle ../cache/vendor/bundle',
|
|
204
203
|
commentary: 'Caching bundle' },
|
|
205
204
|
{ command: 'if [ -f public/assets/manifest.yml ] ; then echo "Not precompiling assets"'\
|
|
206
205
|
" ; else RAILS_ENV=#{environment} bundle exec foreman run rake assets:precompile ; fi",
|
data/lib/foreplay/version.rb
CHANGED
|
@@ -111,13 +111,11 @@ 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
|
|
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'\
|
|
114
|
+
'if [ -d ../cache/vendor/bundle ] ; then cp -rf ../cache/vendor/bundle vendor/bundle'\
|
|
117
115
|
' ; else echo No bundle to restore ; fi',
|
|
118
116
|
'sudo ln -f `which bundle` /usr/bin/bundle || echo Using default version of bundle',
|
|
119
117
|
'bundle install --deployment --clean --jobs 2 --without development test',
|
|
120
|
-
'mkdir -p ../cache/vendor &&
|
|
118
|
+
'mkdir -p ../cache/vendor && cp -rf vendor/bundle ../cache/vendor/bundle',
|
|
121
119
|
'if [ -f public/assets/manifest.yml ] ; then echo "Not precompiling assets"'\
|
|
122
120
|
' ; else RAILS_ENV=production bundle exec foreman run rake assets:precompile ; fi',
|
|
123
121
|
'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.7.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-11-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|