airbrussh 1.3.4 → 1.4.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
  SHA256:
3
- metadata.gz: 0716af185ab77db33016ad4b498ccf34cee605cee982e485eafbae11ece23db7
4
- data.tar.gz: 8e2c8f0243af476498c0eb2577570fc6c2e7d9a0efe1a4804ad02c26010cf76f
3
+ metadata.gz: beb9d7bcc5ef80c739fd7d57f945714c41348eab098b9975dd8611fc92c96cc4
4
+ data.tar.gz: a94d57358851990b0cf5bd54735e189ec068b8f413813667a96978780016becb
5
5
  SHA512:
6
- metadata.gz: 8192966437d80fd0a0d7afe954c1fd983960e17144d4288d497e11d49029ffb4b8828fab6b477a1ab9423eac86c14f67eac3d40a63676963b9224583f7bd7eee
7
- data.tar.gz: 32c77e23b79b8dfff85776e86f55b483c5699d113e88833cb085ee2f8cd200870f89272d991ba45cc3a2c448110004f560f968eb21b24ae606e1f9127bd4479c
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)
@@ -16,7 +16,7 @@ module Airbrussh
16
16
  super(io)
17
17
 
18
18
  @config = config
19
- @context = Airbrussh::Rake::Context.new(config)
19
+ @context = config.context.new(config)
20
20
  @console = Airbrussh::Console.new(original_output, config)
21
21
 
22
22
  write_banner
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Airbrussh
4
- VERSION = "1.3.4".freeze
4
+ VERSION = "1.4.0".freeze
5
5
  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.3.4
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-09-15 00:00:00.000000000 Z
11
+ date: 2019-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sshkit