airbrussh 1.3.4 → 1.4.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/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 +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: beb9d7bcc5ef80c739fd7d57f945714c41348eab098b9975dd8611fc92c96cc4
|
4
|
+
data.tar.gz: a94d57358851990b0cf5bd54735e189ec068b8f413813667a96978780016becb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24dd006d4a258ecb0917d572e407d077f784efb7eddab21751c8ea19936fd0860848ee52aa33e8c9690b30192c96f00bcec0edebcbb20ab6997267c5e8066cd4
|
7
|
+
data.tar.gz: 28b834a865a6fb7be89de6a1f72e48890c0dce521e87fddc56fe4802fa9d23dfce1964b40c4da06404cd5cf289b0440c46aa2a11e45b061e70bb4d6da993a9ab
|
data/README.md
CHANGED
@@ -65,6 +65,7 @@ Here are the options you can use, and their effects (note that the defaults may
|
|
65
65
|
|`banner`|`nil`|Provide a string (e.g. "Capistrano started!") that will be printed when Capistrano starts up.|
|
66
66
|
|`color`|`:auto`|Use `true` or `false` to enable or disable ansi color. If set to `:auto`, Airbrussh automatically uses color based on whether the output is a TTY, or if the SSHKIT_COLOR environment variable is set.|
|
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
|
+
|`context`|`Airbrussh::Rake::Context`|Defines the execution context. Targeted towards uses of Airbrussh outside of Rake/Capistrano. Alternate implementations should provide the definition for `current_task_name`, `register_new_command`, and `position`.|
|
68
69
|
|`log_file`|`log/capistrano.log`|Capistrano's verbose output is saved to this file to facilitate debugging. Set to `nil` to disable completely.|
|
69
70
|
|`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
71
|
|`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|
|
@@ -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, :task_prefix
|
8
|
+
:command_output, :task_prefix, :context
|
9
9
|
|
10
10
|
def initialize
|
11
11
|
self.log_file = nil
|
@@ -15,6 +15,7 @@ module Airbrussh
|
|
15
15
|
self.banner = :auto
|
16
16
|
self.command_output = false
|
17
17
|
self.task_prefix = nil
|
18
|
+
self.context = Airbrussh::Rake::Context
|
18
19
|
end
|
19
20
|
|
20
21
|
def apply_options(options)
|
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.4.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: 2019-
|
11
|
+
date: 2019-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sshkit
|