foreplay 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- 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
|
-
![Gem Version](http://img.shields.io/gem/v/foreplay.svg?style=flat) [![Coverage Status](https://img.shields.io/coveralls/Xenapto/foreplay.svg?style=flat)](https://coveralls.io/r/Xenapto/foreplay?branch=develop)
|
3
|
+
![Gem Version](http://img.shields.io/gem/v/foreplay.svg?style=flat) [![Code Climate](http://img.shields.io/codeclimate/github/Xenapto/foreplay.svg?style=flat)](https://codeclimate.com/github/Xenapto/foreplay) [![Coverage Status](https://img.shields.io/coveralls/Xenapto/foreplay.svg?style=flat)](https://coveralls.io/r/Xenapto/foreplay?branch=develop)
|
4
4
|
[![Developer status](http://img.shields.io/badge/developer-awesome-brightgreen.svg?style=flat)](http://xenapto.com)
|
5
5
|
![build status](https://circleci.com/gh/Xenapto/foreplay.png?circle-token=dd3a51864d33f6506b18a355bc901b90c0df3b3b)
|
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
|