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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3f9aff01fa7dd340b29e6b571e3bfddf438b4b3
4
- data.tar.gz: 778ea56a90bf7a857ae6b295c82908f73024cc2a
3
+ metadata.gz: 3f1b2bda404690e119118753cd5f3e2a88210b56
4
+ data.tar.gz: 2b9c918dfe45e9fc3d007cfe2dd9552ab9459b17
5
5
  SHA512:
6
- metadata.gz: 2a217030959dfa535ce15c68f54093047e58e1538bafb75d32bbff8fb5ad427c4aa819220726a048d1455a0acf48aaf9e1f4ae00dbd91c6c261b1c33170978e1
7
- data.tar.gz: bd00d25bf9f1116a6d475e82bc02a09eb48df104bdb682e3976e3f0c4b82b40baec1c76e501863eca51dd0c7226e12340750f8600660bbff0bbee87a75321a48
6
+ metadata.gz: 566c13c8fa3f06b6ac3782f660e8e4a8c8168fd052df67dc58794ffdb9aa0463e1cbf7b2e176059d5ddc4a64c187437858bd35db89124580928c7e366ce3445b
7
+ data.tar.gz: 89dfa127721b6fa80b90773a7f2d3adbba6b68d3ebec483cb3cae3c91839d43d5358c21c0fe8f2a2b4b72364b3d1b9ee267ae8012c92d9953041a8d52b09b20b
data/.hound.yml CHANGED
@@ -33,7 +33,7 @@ CyclomaticComplexity:
33
33
  ClassLength:
34
34
  Description: 'Avoid classes longer than 100 lines of code.'
35
35
  CountComments: false # count full line comments?
36
- Max: 283
36
+ Max: 290
37
37
 
38
38
  Output:
39
39
  Description: 'Checks for calls to puts, print, etc.'
@@ -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 cp -rf ../cache/vendor/bundle vendor/bundle'\
196
- ' ; else echo No bundle to restore ; fi',
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 && cp -rf vendor/bundle ../cache/vendor/bundle',
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",
@@ -1,3 +1,3 @@
1
1
  module Foreplay
2
- VERSION = '0.7.0'
2
+ VERSION = '0.7.1'
3
3
  end
@@ -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 cp -rf ../cache/vendor/bundle vendor/bundle'\
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 && cp -rf vendor/bundle ../cache/vendor/bundle',
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.0
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: 2014-11-18 00:00:00.000000000 Z
11
+ date: 2015-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport