Skip to content

Releases: capistrano/sshkit

1.11.4

03 Nov 04:54
Compare
Choose a tag to compare
  • Use string interpolation for environment variables to avoid escaping issues
    with sprintf
    PR #280
    @Sinjo - Chris Sinjakli

1.11.3

16 Sep 20:45
Compare
Choose a tag to compare
  • Fix known_hosts caching to match on the entire hostlist
    PR #364 @byroot

1.11.2

30 Jul 00:57
Compare
Choose a tag to compare

Bug fixes

1.11.1

17 Jun 18:20
Compare
Choose a tag to compare

Bug fixes

  • Fixed a regression in 1.11.0 that would cause
    ArgumentError: invalid option(s): known_hosts in some older versions of
    net-ssh. @byroot #357

1.11.0

14 Jun 19:42
Compare
Choose a tag to compare

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

22 Apr 17:57
Compare
Choose a tag to compare
  • 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 fixes zlib(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

10 Mar 17:01
Compare
Choose a tag to compare

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

23 Feb 19:00
Compare
Choose a tag to compare

Potentially breaking changes

  • The SSHKit DSL is no longer automatically included when you require it.
    This means you must now explicitly include 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 setting SSHKit::Backend::Netssh.pool.idle_timeout = 0.
    @mattbrictson @byroot PR #328

Bug fixes

v1.8.0

02 Dec 15:34
Compare
Choose a tag to compare
  • 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 over String#%
    • No longer shadow caller_line variable in DeprecationLogger
    • Rescue StandardError instead of Exception
    • Remove useless private access modifier in TestAbstract
    • 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 on Formatter
    PR #257
    @robd
    • Deprecate @stdout and @stderr accessors on Command
  • 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 extends Pretty, 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.
  • Removed broken support for assigning an IO to the output config option.
    Issue #243,
    PR #244
    @robd
    • Use SSHKit.config.output = SSHKit::Formatter::SimpleText.new($stdin) instead
  • 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 the capture method and strip by default on the Local backend.
    PR #239,
    PR #249
    @robd
    • The Local backend now strips by default to be consistent with the Netssh 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)
  • Simplified backend hierarchy.
    PR #235,
    PR #237
    @robd
    • Moved duplicate implementations of make, rake, test, capture, background on to Abstract backend.
    • Backend implementations now only need to implement execute_command, upload! and download!
    • Removed Printer from backend hierarchy for Local and Netssh backends (they now just extend Abstract)
    • Removed unused Net::SSH:LogLevelShim
  • 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 from format= in that it accepts options or arguments that will be passed to the formatter's constructor. The format= 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

26 Oct 21:22
Compare
Choose a tag to compare
  • Fix a regression in 1.7.0 that caused command completion messages to be removed from log output. @mattbrictson