airbrussh 0.7.0 → 0.8.0
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/.rubocop.yml +5 -0
- data/CHANGELOG.md +8 -1
- data/Gemfile +3 -0
- data/README.md +43 -6
- data/lib/airbrussh/command_formatter.rb +3 -3
- data/lib/airbrussh/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: 83498b571567499f13ecb5a978e2b8e1f8cdfaef
|
4
|
+
data.tar.gz: 1e7f3fe9e08f71b5e2a32ba2cb3a2801d8b70a88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9c0da68ef33be91854762fda31c785deb5e1b1ac55baabaa6784feecd391667077ac1407eeeb81c2f5cbbc5d9612b00f183fa1a55682877346fc9c1fd015760
|
7
|
+
data.tar.gz: 964c8a4e8ea43062932220f25c0cdf491e76e8cc9941633de90e81578bd15de577a39ebe6d70bfc9043be6fe2103b10ec210a18274b740891a33e2672ddb1531
|
data/.rubocop.yml
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
inherit_from: .rubocop_todo.yml
|
2
2
|
|
3
3
|
AllCops:
|
4
|
+
DisplayCopNames: true
|
5
|
+
DisplayStyleGuide: true
|
4
6
|
Exclude:
|
5
7
|
- "*.gemspec"
|
6
8
|
|
@@ -33,3 +35,6 @@ Style/SpaceAroundEqualsInParameterDefault:
|
|
33
35
|
|
34
36
|
Style/StringLiterals:
|
35
37
|
EnforcedStyle: double_quotes
|
38
|
+
|
39
|
+
Style/TrivialAccessors:
|
40
|
+
AllowPredicates: true
|
data/CHANGELOG.md
CHANGED
@@ -8,6 +8,12 @@ Airbrussh is in a pre-1.0 state. This means that its APIs and behavior are subje
|
|
8
8
|
|
9
9
|
* Your contribution here!
|
10
10
|
|
11
|
+
## [0.8.0][] (2015-11-20)
|
12
|
+
|
13
|
+
* Airbrussh now displays the correct user@host output in the following edge-cases:
|
14
|
+
* Inside an SSHKit `as(:user => "...")` block
|
15
|
+
* When a user is specified using `set :ssh_options, :user => "..."` ([see #65](https://github.com/mattbrictson/airbrussh/issues/65))
|
16
|
+
|
11
17
|
## [0.7.0][] (2015-08-08)
|
12
18
|
|
13
19
|
Fixes:
|
@@ -74,7 +80,8 @@ There are, however, many behind-the-scenes changes and improvements to overall c
|
|
74
80
|
* Initial release
|
75
81
|
|
76
82
|
[Semver]: http://semver.org
|
77
|
-
[Unreleased]: https://github.com/mattbrictson/airbrussh/compare/v0.
|
83
|
+
[Unreleased]: https://github.com/mattbrictson/airbrussh/compare/v0.8.0...HEAD
|
84
|
+
[0.8.0]: https://github.com/mattbrictson/airbrussh/compare/v0.7.0...v0.8.0
|
78
85
|
[0.7.0]: https://github.com/mattbrictson/airbrussh/compare/v0.6.0...v0.7.0
|
79
86
|
[0.6.0]: https://github.com/mattbrictson/airbrussh/compare/v0.5.1...v0.6.0
|
80
87
|
[0.5.1]: https://github.com/mattbrictson/airbrussh/compare/v0.5.0...v0.5.1
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -52,7 +52,46 @@ set :format, :pretty
|
|
52
52
|
|
53
53
|
Airbrussh automatically replaces the default Capistrano log formatter, so there is nothing more you have to do. Just run `cap` as normal and enjoy the prettier output!
|
54
54
|
|
55
|
-
|
55
|
+
For advanced usage, refer to the these sections below:
|
56
|
+
|
57
|
+
* [FAQ](#faq)
|
58
|
+
* [Advanced configuration](#advanced-configuration)
|
59
|
+
* [Usage outside of Capistrano](#usage-outside-of-capistrano)
|
60
|
+
|
61
|
+
## FAQ
|
62
|
+
|
63
|
+
**Airbrussh is not displaying the output of my commands! For example, I run `tail` in one of my capistrano tasks and airbrussh doesn't show anything. How do I fix this?**
|
64
|
+
|
65
|
+
For brevity, airbrussh mutes all output (stdout and stderr) of commands by default. To show all output, add this to your `deploy.rb` (see also the other [configuration options](#advanced-configuration) later in this README):
|
66
|
+
|
67
|
+
```ruby
|
68
|
+
Airbrussh.configure do |config|
|
69
|
+
config.command_output = true
|
70
|
+
end
|
71
|
+
```
|
72
|
+
|
73
|
+
**Does airbrussh work with Capistrano 2?**
|
74
|
+
|
75
|
+
No, Capistrano 3 is required. We recommend Capistrano 3.4.0 or higher.
|
76
|
+
|
77
|
+
**Does airbrussh work with JRuby?**
|
78
|
+
|
79
|
+
JRuby is not officially supported or tested, but may work. You must disable automatic truncation to work around a known bug in the JRuby 9.0.1.0 standard library. See [#62](https://github.com/mattbrictson/airbrussh/issues/62) for more details.
|
80
|
+
|
81
|
+
```ruby
|
82
|
+
Airbrussh.configure do |config|
|
83
|
+
# Disable automatic truncation for JRuby compatibility
|
84
|
+
config.truncate = false
|
85
|
+
end
|
86
|
+
```
|
87
|
+
|
88
|
+
**I have a question that’s not answered here or elsewhere in the README.**
|
89
|
+
|
90
|
+
Please [open a GitHub issue](https://github.com/mattbrictson/airbrussh/issues/new) and we’ll be happy to help!
|
91
|
+
|
92
|
+
## Advanced configuration
|
93
|
+
|
94
|
+
Airbrussh can be configured by calling `Airbrussh.configure` in your `deploy.rb` file. You can do stage-specific configuration in e.g. `deploy/production.rb` as well. Here are the available options:
|
56
95
|
|
57
96
|
```ruby
|
58
97
|
Airbrussh.configure do |config|
|
@@ -148,13 +187,11 @@ end
|
|
148
187
|
|
149
188
|
## History
|
150
189
|
|
151
|
-
Airbrussh started life as custom logging code within the [capistrano-
|
190
|
+
Airbrussh started life as custom logging code within the [capistrano-mb][] collection of opinionated Capistrano recipes. In February 2015, the logging code was refactored into a standalone gem with its own configuration and documentation, and renamed `airbrussh`. Now anyone can using SSHKit or Capistrano can safely plug it into their projects!
|
152
191
|
|
153
192
|
## Roadmap
|
154
193
|
|
155
|
-
Airbrussh
|
156
|
-
|
157
|
-
If you have ideas for other improvements, please contribute!
|
194
|
+
Airbrussh will most likely be integrated as the default formatter in a future release of SSHKit or Capistrano. If you have any suggestions for how to make this migration a smooth one, or if you have other ideas for improvements to Airbrussh, please add your comment to the discussion in [GitHub issue #39](https://github.com/mattbrictson/airbrussh/issues/39).
|
158
195
|
|
159
196
|
## Development
|
160
197
|
|
@@ -168,4 +205,4 @@ Airbrussh is designed to work against multiple versions of SSHKit and Ruby. In o
|
|
168
205
|
|
169
206
|
Contributions are welcome! Read [CONTRIBUTING.md](CONTRIBUTING.md) to get started.
|
170
207
|
|
171
|
-
[capistrano-
|
208
|
+
[capistrano-mb]: https://github.com/mattbrictson/capistrano-mb
|
@@ -58,9 +58,9 @@ module Airbrussh
|
|
58
58
|
private
|
59
59
|
|
60
60
|
def user_at_host
|
61
|
-
user_str = user
|
62
|
-
host_str = host.
|
63
|
-
[user_str, host_str].join("@")
|
61
|
+
user_str = host.user || (host.ssh_options || {})[:user]
|
62
|
+
host_str = host.hostname
|
63
|
+
[user_str, host_str].compact.join("@")
|
64
64
|
end
|
65
65
|
|
66
66
|
def runtime
|
data/lib/airbrussh/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: airbrussh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Brictson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sshkit
|