foreplay 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/foreplay/deploy.rb +2 -4
- data/lib/foreplay/version.rb +1 -1
- data/spec/lib/foreplay/deploy_spec.rb +1 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 207af9d2a22a8bb5a7f2df432d8a179468b6727e
|
4
|
+
data.tar.gz: 840106d3966ec43f626b2b3670563b4c64dc44df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c14bd7f8917e52d7670908f354ec3321b5d3dd50e5dcc57252f8cd9c437f5cdfe909dd5a73707a76cd6e20dc572f37f8f924f47bf7ab665f53d5dac074e4ad2
|
7
|
+
data.tar.gz: 3c9002e159c18567745953c910332ae5ccd6c11117190c08e04d32e0570654cc6e014696e3af228e2b0f53e1013e0224420f1191b5d70af35cefd399d599ea83
|
data/lib/foreplay/deploy.rb
CHANGED
@@ -155,7 +155,7 @@ module Foreplay
|
|
155
155
|
steps = [
|
156
156
|
{ command: "mkdir -p #{path} && cd #{path} && rm -rf #{current_port} "\
|
157
157
|
"&& git clone -b #{branch} #{repository} #{current_port}",
|
158
|
-
commentary: "Cloning repository #{repository}" },
|
158
|
+
commentary: "Cloning #{branch} branch of repository #{repository}" },
|
159
159
|
{ command: "rvm rvmrc trust #{current_port}",
|
160
160
|
commentary: 'Trusting the .rvmrc file for the new instance' },
|
161
161
|
{ command: "rvm rvmrc warning ignore #{current_port}",
|
@@ -188,9 +188,7 @@ module Foreplay
|
|
188
188
|
path: 'config/' },
|
189
189
|
{ command: 'bundle install --deployment --without development test',
|
190
190
|
commentary: 'Using bundler to install the required gems in deployment mode' },
|
191
|
-
{ command: 'sudo
|
192
|
-
commentary: 'Setting the current version of foreman to be the default' },
|
193
|
-
{ command: 'sudo foreman export upstart /etc/init',
|
191
|
+
{ command: 'sudo bundle exec foreman export upstart /etc/init',
|
194
192
|
commentary: "Converting #{current_service} to an upstart service" },
|
195
193
|
{ command: "sudo start #{current_service} || sudo restart #{current_service}",
|
196
194
|
commentary: 'Starting the service',
|
data/lib/foreplay/version.rb
CHANGED
@@ -108,8 +108,7 @@ describe Foreplay::Deploy do
|
|
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
110
|
'bundle install --deployment --without development test',
|
111
|
-
'sudo
|
112
|
-
'sudo foreman export upstart /etc/init',
|
111
|
+
'sudo bundle exec foreman export upstart /etc/init',
|
113
112
|
'sudo start foreplay-50000 || sudo restart foreplay-50000',
|
114
113
|
'mkdir -p .foreplay/foreplay && touch .foreplay/foreplay/current_port && cat .foreplay/foreplay/current_port',
|
115
114
|
'echo 50000 > $HOME/.foreplay/foreplay/current_port',
|