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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 97f18a0731191cf469fba1995ee53ecd33c2fbc2
4
- data.tar.gz: b4bcb4397858d6d851eeac32b87efd65077e1c20
3
+ metadata.gz: 9771bbda4dc72fc7aeb7d2806a0288fea6ae3e4b
4
+ data.tar.gz: 2e8bf81e28f33b89fc124200f8514669af17d73d
5
5
  SHA512:
6
- metadata.gz: b02466199c0278fc600d582027ad50969ae558e6ba4cdc37508065fb4d11f0ff0ffeb62c27226f582629f85ef5dd4ea1f979721bfe793fa473353ac266e9d303
7
- data.tar.gz: 83471c6f9631f3158a64e32fce3d82d1648a8341e7d1cd2aaa064ebbeb4380e566515509e2a5f3164946526aa6bdf38911de194bd5f1f8f35eb8e4c5cd61362a
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
 
@@ -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' },
@@ -1,3 +1,3 @@
1
1
  module Foreplay
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
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.1
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-06-19 00:00:00.000000000 Z
11
+ date: 2014-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport