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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d662aabb8319be601cbbd4222aafcd770af9a9a5
4
- data.tar.gz: 71685552b59431833e0268b8e7caaa8bb6da6742
3
+ metadata.gz: 20c3730cae0f094ee535a7ec85844ee4cbc2d6ec
4
+ data.tar.gz: ed19aee31b8d2d1d6f0fa33e8af1bd21e265171a
5
5
  SHA512:
6
- metadata.gz: daaf6c90769d7d44a82c3d60a893a64090acb768a0cfe7e50cb6a2c6af76be1f704668035db0b0abfcfe45946aaef8ca93faf38016280b5804248123c65f2e5f
7
- data.tar.gz: 1ba2a9cd0cc8cd7eaa6f47d36ba22e44f6484f8245b9959089a32b71b4ea60e93cd25d20a90a6fabced9bab2ad59fa439284402b70027215863aa88264459add
6
+ metadata.gz: 544d093781b2edfd20944fc2b3cd86bb8ce4b8a690c732625dd28d5367d000212e520d9e07f014b724c33a8071068878e63562cc3936fe15bee48a6cbe79d1b8
7
+ data.tar.gz: b035b54c0db6eca49a259b9759195d68b21ce6b65f42724bd7e9ce75addffb1d2f2b3cc4ebe720d4a30107e685812e3f828dabe4a9c39044ff671fb6ed09e954
@@ -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.2.0...HEAD
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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Airbrussh
3
- VERSION = "1.2.0".freeze
3
+ VERSION = "1.3.0".freeze
4
4
  end
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.2.0
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-04-14 00:00:00.000000000 Z
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.11
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