airbrussh 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/README.md +1 -0
- data/lib/airbrussh/configuration.rb +2 -1
- data/lib/airbrussh/console_formatter.rb +1 -1
- data/lib/airbrussh/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20c3730cae0f094ee535a7ec85844ee4cbc2d6ec
|
4
|
+
data.tar.gz: ed19aee31b8d2d1d6f0fa33e8af1bd21e265171a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 544d093781b2edfd20944fc2b3cd86bb8ce4b8a690c732625dd28d5367d000212e520d9e07f014b724c33a8071068878e63562cc3936fe15bee48a6cbe79d1b8
|
7
|
+
data.tar.gz: b035b54c0db6eca49a259b9759195d68b21ce6b65f42724bd7e9ce75addffb1d2f2b3cc4ebe720d4a30107e685812e3f828dabe4a9c39044ff671fb6ed09e954
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,10 @@ All notable changes to this project will be documented in this file. This projec
|
|
6
6
|
|
7
7
|
* Your contribution here!
|
8
8
|
|
9
|
+
## [1.3.0][] (2017-06-16)
|
10
|
+
|
11
|
+
* [#109](https://github.com/mattbrictson/airbrussh/pull/109): Add configurable task prefix - [@gondalez](https://github.com/gondalez)
|
12
|
+
|
9
13
|
## [1.2.0][] (2017-04-14)
|
10
14
|
|
11
15
|
* [#95](https://github.com/mattbrictson/airbrussh/pull/95): colorize LogMessage label on WARN level and above - [@klyonrad](https://github.com/klyonrad)
|
@@ -131,7 +135,8 @@ There are, however, many behind-the-scenes changes and improvements to overall c
|
|
131
135
|
* Initial release
|
132
136
|
|
133
137
|
[Semver]: http://semver.org
|
134
|
-
[Unreleased]: https://github.com/mattbrictson/airbrussh/compare/v1.
|
138
|
+
[Unreleased]: https://github.com/mattbrictson/airbrussh/compare/v1.3.0...HEAD
|
139
|
+
[1.3.0]: https://github.com/mattbrictson/airbrussh/compare/v1.2.0...v1.3.0
|
135
140
|
[1.2.0]: https://github.com/mattbrictson/airbrussh/compare/v1.1.2...v1.2.0
|
136
141
|
[1.1.2]: https://github.com/mattbrictson/airbrussh/compare/v1.1.1...v1.1.2
|
137
142
|
[1.1.1]: https://github.com/mattbrictson/airbrussh/compare/v1.1.0...v1.1.1
|
data/README.md
CHANGED
@@ -67,6 +67,7 @@ Here are the options you can use, and their effects (note that the defaults may
|
|
67
67
|
|`command_output`|`true`|Set to `:stdout`, `:stderr`, or `true` to display the SSH output received via stdout, stderr, or both, respectively. Set to `false` to not show any SSH output, for a minimal look.|
|
68
68
|
|`log_file`|`log/capistrano.log`|Capistrano's verbose output is saved to this file to facilitate debugging. Set to `nil` to disable completely.|
|
69
69
|
|`truncate`|`:auto`|Set to a number (e.g. 80) to truncate the width of the output to that many characters, or `false` to disable truncation. If `:auto`, output is automatically truncated to the width of the terminal window, if it can be determined.|
|
70
|
+
|`task_prefix`|`nil`|A string to prefix to task output. Handy for output collapsing like [buildkite](https://buildkite.com/docs/builds/managing-log-output)'s `---` prefix|
|
70
71
|
|
71
72
|
## FAQ
|
72
73
|
|
@@ -5,7 +5,7 @@ require "airbrussh/log_file_formatter"
|
|
5
5
|
module Airbrussh
|
6
6
|
class Configuration
|
7
7
|
attr_accessor :log_file, :monkey_patch_rake, :color, :truncate, :banner,
|
8
|
-
:command_output
|
8
|
+
:command_output, :task_prefix
|
9
9
|
|
10
10
|
def initialize
|
11
11
|
self.log_file = nil
|
@@ -14,6 +14,7 @@ module Airbrussh
|
|
14
14
|
self.truncate = :auto
|
15
15
|
self.banner = :auto
|
16
16
|
self.command_output = false
|
17
|
+
self.task_prefix = nil
|
17
18
|
end
|
18
19
|
|
19
20
|
def apply_options(options)
|
@@ -100,7 +100,7 @@ module Airbrussh
|
|
100
100
|
return if current_task_name == last_printed_task
|
101
101
|
|
102
102
|
self.last_printed_task = current_task_name
|
103
|
-
print_line("#{clock} #{blue(current_task_name)}")
|
103
|
+
print_line("#{config.task_prefix}#{clock} #{blue(current_task_name)}")
|
104
104
|
end
|
105
105
|
|
106
106
|
def clock
|
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: 1.
|
4
|
+
version: 1.3.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: 2017-
|
11
|
+
date: 2017-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sshkit
|
@@ -191,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
191
191
|
version: '0'
|
192
192
|
requirements: []
|
193
193
|
rubyforge_project:
|
194
|
-
rubygems_version: 2.6.
|
194
|
+
rubygems_version: 2.6.12
|
195
195
|
signing_key:
|
196
196
|
specification_version: 4
|
197
197
|
summary: Airbrussh pretties up your SSHKit and Capistrano output
|