foreplay 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/.ruby-version +1 -0
- data/lib/foreplay/deploy.rb +7 -3
- data/lib/foreplay/version.rb +1 -1
- data/spec/lib/foreplay/deploy_spec.rb +3 -1
- metadata +5 -5
- data/.rvmrc +0 -5
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.9.3
|
data/lib/foreplay/deploy.rb
CHANGED
@@ -129,8 +129,12 @@ module Foreplay
|
|
129
129
|
:commentary => "Cloning repository #{repository}" },
|
130
130
|
{ :command => "rvm rvmrc trust #{current_port}",
|
131
131
|
:commentary => 'Trusting the .rvmrc file for the new instance' },
|
132
|
+
{ :command => "rvm rvmrc warning ignore #{current_port}",
|
133
|
+
:commentary => 'Ignoring the .rvmrc warning for the new instance' },
|
132
134
|
{ :command => "cd #{current_port}",
|
133
|
-
:commentary => '
|
135
|
+
:commentary => 'If you have a .rvmrc file there may be a delay now while we install a new ruby' },
|
136
|
+
{ :command => 'if [ -f .ruby-version ] ; then rvm install `cat .ruby-version` ; else echo "No .ruby-version file found" ; fi',
|
137
|
+
:commentary => 'If you have a .ruby-version file there may be a delay now while we install a new ruby' },
|
134
138
|
{ :command => 'mkdir -p config',
|
135
139
|
:commentary => "Making sure the config directory exists" },
|
136
140
|
{ :key => :env,
|
@@ -148,8 +152,8 @@ module Foreplay
|
|
148
152
|
:before => ' ',
|
149
153
|
:header => "#{environment}:",
|
150
154
|
:path => 'config/' },
|
151
|
-
{ :command => 'bundle install',
|
152
|
-
:commentary => 'Using bundler to install the required gems' },
|
155
|
+
{ :command => 'bundle install --deployment --without development test',
|
156
|
+
:commentary => 'Using bundler to install the required gems in deployment mode' },
|
153
157
|
{ :command => 'sudo ln -f `which foreman` /usr/bin/foreman',
|
154
158
|
:commentary => 'Setting the current version of foreman to be the default' },
|
155
159
|
{ :command => 'sudo foreman export upstart /etc/init',
|
data/lib/foreplay/version.rb
CHANGED
@@ -67,7 +67,9 @@ describe Foreplay::Deploy do
|
|
67
67
|
'echo 50000 > .foreplay/current_port',
|
68
68
|
'mkdir -p apps/foreplay && cd apps/foreplay && rm -rf 50000 && git clone git@github.com:Xenapto/foreplay.git 50000',
|
69
69
|
'rvm rvmrc trust 50000',
|
70
|
+
'rvm rvmrc warning ignore 50000',
|
70
71
|
'cd 50000',
|
72
|
+
'if [ -f .ruby-version ] ; then rvm install `cat .ruby-version` ; else echo "No .ruby-version file found" ; fi',
|
71
73
|
'echo "RAILS_ENV=production" > .env',
|
72
74
|
'echo "concurrency: web=1,worker=0,scheduler=0" > .foreman',
|
73
75
|
'echo "app: foreplay-50000" >> .foreman',
|
@@ -81,7 +83,7 @@ describe Foreplay::Deploy do
|
|
81
83
|
'echo " host: TODO Put here the database host name" >> config/database.yml',
|
82
84
|
'echo " username: TODO Put here the database user" >> config/database.yml',
|
83
85
|
'echo " password: TODO Put here the database user\'s password" >> config/database.yml',
|
84
|
-
'bundle install',
|
86
|
+
'bundle install --deployment --without development test',
|
85
87
|
'sudo ln -f `which foreman` /usr/bin/foreman',
|
86
88
|
'sudo foreman export upstart /etc/init',
|
87
89
|
'sudo start foreplay-50000 || sudo restart foreplay-50000',
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreplay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-11-
|
12
|
+
date: 2013-11-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -212,7 +212,7 @@ extensions: []
|
|
212
212
|
extra_rdoc_files: []
|
213
213
|
files:
|
214
214
|
- .gitignore
|
215
|
-
- .
|
215
|
+
- .ruby-version
|
216
216
|
- Gemfile
|
217
217
|
- LICENSE.txt
|
218
218
|
- README.md
|
@@ -250,7 +250,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
250
250
|
version: '0'
|
251
251
|
segments:
|
252
252
|
- 0
|
253
|
-
hash:
|
253
|
+
hash: 2086017805014561319
|
254
254
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
255
255
|
none: false
|
256
256
|
requirements:
|
@@ -259,7 +259,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
259
259
|
version: '0'
|
260
260
|
segments:
|
261
261
|
- 0
|
262
|
-
hash:
|
262
|
+
hash: 2086017805014561319
|
263
263
|
requirements: []
|
264
264
|
rubyforge_project:
|
265
265
|
rubygems_version: 1.8.25
|