v1.8.0
版本发布时间: 2015-12-02 23:34:47
capistrano/sshkit最新发布版本:v1.23.2(2024-10-15 12:03:41)
- add SSHKit::Backend::ConnectionPool#close_connections PR #285 @akm
- Clean up rubocop lint warnings
PR #275
@cshaffer
- Prepend unused parameter names with an underscore
- Prefer “safe assignment in condition”
- Disambiguate regexp literals with parens
- Prefer
sprintf
overString#%
- No longer shadow
caller_line
variable inDeprecationLogger
- Rescue
StandardError
instead ofException
- Remove useless
private
access modifier inTestAbstract
- Disambiguate block operator with parens
- Disambiguate between grouped expression and method params
- Remove assertion in
TestHost#test_assert_hosts_compare_equal
that compares something with itself
- Export environment variables and execute command in a subshell. PR #273 @kuon
- Introduce
log_command_start
,log_command_data
,log_command_exit
methods onFormatter
PR #257 @robd- Deprecate
@stdout
and@stderr
accessors onCommand
- Deprecate
- Add support for deprecation logging options. README, PR #258 @robd
- Quote environment variable values. PR #250 @Sinjo - Chris Sinjakli
- Simplified formatter hierarchy.
PR #248
@robd
-
SimpleText
formatter now extendsPretty
, rather than duplicating.
-
- Hide ANSI color escape sequences when outputting to a file.
README,
Issue #245,
PR #246
@robd
- Now only color the output if it is associated with a tty,
or the
SSHKIT_COLOR
environment variable is set.
- Now only color the output if it is associated with a tty,
or the
- Removed broken support for assigning an
IO
to theoutput
config option. Issue #243, PR #244 @robd- Use
SSHKit.config.output = SSHKit::Formatter::SimpleText.new($stdin)
instead
- Use
- Added support for
:interaction_handler
option on commands. PR #234, PR #242 @robd - Removed partially supported
TRACE
log level. 2aa7890 @robd - Add support for the
:strip
option to thecapture
method and strip by default on theLocal
backend. PR #239, PR #249 @robd- The
Local
backend now strips by default to be consistent with theNetssh
one. - This reverses change 7d15a9a to the
Local
capture API to remove stripping by default. - If you require the raw, unstripped output, pass the
strip: false
option:capture(:ls, strip: false)
- The
- Simplified backend hierarchy.
PR #235,
PR #237
@robd
- Moved duplicate implementations of
make
,rake
,test
,capture
,background
on toAbstract
backend. - Backend implementations now only need to implement
execute_command
,upload!
anddownload!
- Removed
Printer
from backend hierarchy forLocal
andNetssh
backends (they now just extendAbstract
) - Removed unused
Net::SSH:LogLevelShim
- Moved duplicate implementations of
- Removed dependency on the
colorize
gem. SSHKit now implements its own ANSI color logic, with no external dependencies. Note that SSHKit now only supports the:bold
or plain modes. Other modes will be gracefully ignored. #263 - New API for setting the formatter:
use_format
. This differs fromformat=
in that it accepts options or arguments that will be passed to the formatter's constructor. Theformat=
syntax will be deprecated in a future release. #295 - SSHKit now immediately raises a
NameError
if you try to set a formatter that does not exist. #295
1、 sshkit-1.8.0.gem 149KB