foreplay 0.2.1 → 0.2.2
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/README.md +1 -1
- data/lib/foreplay/deploy.rb +2 -1
- data/lib/foreplay/version.rb +1 -1
- 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: 9771bbda4dc72fc7aeb7d2806a0288fea6ae3e4b
|
|
4
|
+
data.tar.gz: 2e8bf81e28f33b89fc124200f8514669af17d73d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 76ffc255893c320edd0e4262503b746a0eba402abd0bb7018ef2a44fc96f7fb2fabd40f5929cd5d6516571227951e0bd8cb57d80b3d4f161ad92622b418d9329
|
|
7
|
+
data.tar.gz: f84a95a6049838d443dc1fb283637e0a62ae52bb26e7b4ce2883758ac0fac0ca26147325de18d474105bfdaf0c0c8399e8d5104704e31ca917a5641e096f6264
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Foreplay
|
|
2
2
|
|
|
3
|
-
 [](https://coveralls.io/r/Xenapto/foreplay?branch=develop)
|
|
3
|
+
 [](https://codeclimate.com/github/Xenapto/foreplay) [](https://coveralls.io/r/Xenapto/foreplay?branch=develop)
|
|
4
4
|
[](http://xenapto.com)
|
|
5
5
|

|
|
6
6
|
|
data/lib/foreplay/deploy.rb
CHANGED
|
@@ -99,6 +99,7 @@ module Foreplay
|
|
|
99
99
|
role = instructions[:role]
|
|
100
100
|
path = instructions[:path]
|
|
101
101
|
repository = instructions[:repository]
|
|
102
|
+
branch = instructions[:branch] || 'master'
|
|
102
103
|
user = instructions[:user]
|
|
103
104
|
port = instructions[:port]
|
|
104
105
|
preposition = mode == :deploy ? 'to' : 'for'
|
|
@@ -152,7 +153,7 @@ module Foreplay
|
|
|
152
153
|
|
|
153
154
|
# Commands to execute on remote server
|
|
154
155
|
steps = [
|
|
155
|
-
{ command: "mkdir -p #{path} && cd #{path} && rm -rf #{current_port} && git clone #{repository} #{current_port}",
|
|
156
|
+
{ command: "mkdir -p #{path} && cd #{path} && rm -rf #{current_port} && git clone -b #{branch} #{repository} #{current_port}",
|
|
156
157
|
commentary: "Cloning repository #{repository}" },
|
|
157
158
|
{ command: "rvm rvmrc trust #{current_port}",
|
|
158
159
|
commentary: 'Trusting the .rvmrc file for the new instance' },
|
data/lib/foreplay/version.rb
CHANGED
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.2.
|
|
4
|
+
version: 0.2.2
|
|
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-08-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|