Releases: capistrano/sshkit
Releases · capistrano/sshkit
1.11.4
1.11.3
1.11.2
Bug fixes
- Fixed a crash occurring when
Host@keys
was set to a non-Enumerable.
@xavierholt PR #360
1.11.1
1.11.0
Bug fixes
- Fixed colorized output alignment in Logger::Pretty. @xavierholt
PR #349 - Fixed a bug that prevented nested
with
calls
#43
Other changes
- Known hosts lookup optimization is now enabled by default. @byroot
1.10.0
- You can now opt-in to caching of SSH's known_hosts file for a speed boost
when deploying to a large fleet of servers. Refer to the
README for
details. We plan to turn this on by default in a future version of SSHKit.
PR #330 @byroot - SSHKit now explicitly closes its pooled SSH connections when Ruby exits;
this fixeszlib(finalizer): the stream was freed prematurely
warnings
PR #343 @mattbrictson - Allow command map entries (
SSHKit::CommandMap#[]
) to be Procs
PR #310
@mikz
1.9.0
Refer to the 1.9.0.rc1 release notes for a full list of new features, fixes,
and potentially breaking changes since SSHKit 1.8.1. There are no changes
since 1.9.0.rc1.
1.9.0.rc1
Potentially breaking changes
- The SSHKit DSL is no longer automatically included when you
require
it.
This means you must now explicitlyinclude SSHKit::DSL
.
See PR #219 for details.
@beatrichartz SSHKit::Backend::Printer#test
now always returns true
PR #312 @mikz
New features
SSHKit::Formatter::Abstract
now accepts an optional Hash of options
PR #308 @mattbrictson- Add
SSHKit::Backend.current
so that Capistrano plugin authors can refactor
helper methods and still have easy access to the currently-executing Backend
without having to use global variables. - Add
SSHKit.config.default_runner
options that allows to override default command runner.
This option also accepts a name of the custom runner class. - The ConnectionPool has been rewritten in this release to be more efficient
and have a cleaner internal API. You can still completely disable the pool
by settingSSHKit::Backend::Netssh.pool.idle_timeout = 0
.
@mattbrictson @byroot PR #328
Bug fixes
- make sure working directory for commands is properly cleared after
within
blocks
PR #307
@steved - display more accurate string for commands with spaces being output in
Formatter::Pretty
PR #304
@steved
PR #319 @mattbrictson - Fix a race condition experienced in JRuby that could cause multi-server
deploys to fail. PR #322
@mattbrictson
v1.8.0
- 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
@robdSimpleText
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 theSSHKIT_COLOR
environment variable is set.
- Now only color the output if it is associated with a tty,
- 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.7.1
- Fix a regression in 1.7.0 that caused command completion messages to be removed from log output. @mattbrictson