geordi 1.9.1 → 1.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -0
- data/CHANGELOG.md +23 -0
- data/Gemfile.lock +2 -2
- data/README.md +1 -1
- data/features/shell.feature +12 -0
- data/lib/geordi/capistrano_config.rb +1 -1
- data/lib/geordi/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31205050856b6cbf1da091aa848188eb443b448ba6fb082f80d47f4cfc155bff
|
4
|
+
data.tar.gz: 683b5faf93216db73bb6196c3f3317676a9c3ac83e72628c7c91e143ace59528
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e49a4315b8a5bafe6d00c433c63745ba0e7bb09db7f2293dd5c3940a0a89bc40b3fdbcc3b48b589d22037f813d6948d5a54ad779afb2452515af9f1dd9c28e4
|
7
|
+
data.tar.gz: 914bbb568c721c19b6ca13521f9bb87c3bdc2fd2817cda7c7cdb0185cc72c937169eb5bc0c5be366d5d3365a347460d9b13ca9d108df1c1fef88c7f9fae58df7
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.5.1
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# Changelog
|
2
|
+
All notable changes to this project will be documented in this file.
|
3
|
+
|
4
|
+
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
5
|
+
|
6
|
+
|
7
|
+
## Unreleased
|
8
|
+
|
9
|
+
## 1.10.0 2018-10-17
|
10
|
+
|
11
|
+
### Compatible changes
|
12
|
+
- Fixes [#44](https://github.com/makandra/geordi/issues/44): Geordi now supports a multiline server definition.
|
13
|
+
|
14
|
+
Example:
|
15
|
+
|
16
|
+
```
|
17
|
+
server 'c01.test.example.com',
|
18
|
+
user: 'deploy-test_p',
|
19
|
+
roles: ['app', 'web', 'db', 'cron', 'primary_cron'],
|
20
|
+
primary: true
|
21
|
+
```
|
22
|
+
|
23
|
+
- Added this CHANGELOG file.
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -367,7 +367,7 @@ calling your local geordi like so (adjust paths to your needs):
|
|
367
367
|
ruby -I ../geordi/lib ../geordi/bin/geordi <command>
|
368
368
|
|
369
369
|
Don't forget to update this README. The whole `geordi` section is auto-generated
|
370
|
-
by `rake readme`.
|
370
|
+
by `rake readme`. Also remember to add your changes to the CHANGELOG.
|
371
371
|
|
372
372
|
Geordi is (partially) tested with Cucumber and Aruba. Run all tests with `rake`.
|
373
373
|
Of course you're free to use `geordi tests` ;)
|
data/features/shell.feature
CHANGED
@@ -28,3 +28,15 @@ Feature: The shell command
|
|
28
28
|
|
29
29
|
When I run `geordi shell geordi`
|
30
30
|
Then the output should contain "Util.system! ssh, deploy@first.example.com, -t, cd /var/www/example.com/current && bash --login"
|
31
|
+
|
32
|
+
Scenario: It allows multiline capistrano server definitions
|
33
|
+
Given a file named "config/deploy.rb" with "deploy.rb exists"
|
34
|
+
And a file named "config/deploy/geordi.rb" with:
|
35
|
+
"""
|
36
|
+
set :deploy_to, '/var/www/example.com'
|
37
|
+
server 'first.example.com',
|
38
|
+
user: 'deploy'
|
39
|
+
"""
|
40
|
+
|
41
|
+
When I run `geordi shell geordi`
|
42
|
+
Then the output should contain "Util.system! ssh, deploy@first.example.com, -t, cd /var/www/example.com/current && bash --login"
|
@@ -11,7 +11,7 @@ module Geordi
|
|
11
11
|
|
12
12
|
def user(server)
|
13
13
|
cap2user = deploy_info[ /^set :user, ['"](.*?)['"]/, 1 ]
|
14
|
-
cap2user || deploy_info[ /^server ['"]#{ server }['"],.*user.{1,4}['"](.*?)['"]
|
14
|
+
cap2user || deploy_info[ /^server ['"]#{ server }['"],.*user.{1,4}['"](.*?)['"]/m, 1 ]
|
15
15
|
end
|
16
16
|
|
17
17
|
def servers
|
data/lib/geordi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geordi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henning Koch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -51,6 +51,8 @@ extensions: []
|
|
51
51
|
extra_rdoc_files: []
|
52
52
|
files:
|
53
53
|
- ".gitignore"
|
54
|
+
- ".ruby-version"
|
55
|
+
- CHANGELOG.md
|
54
56
|
- Gemfile
|
55
57
|
- Gemfile.lock
|
56
58
|
- LICENSE
|