sshkit icon indicating copy to clipboard operation
sshkit copied to clipboard

SSHKit.config.formatter is now a private method

Open chrislewis60 opened this issue 12 years ago • 3 comments

When investigating various output options and verbosity I referred to your readme and found the following under Output Handling:

SSHKit.config.output = SSHKit.config.formatter.new($stdout)

However, that no longer works because formatter is now a private method in the config so you can't call it directly. Just doing:

SSHKit.config.output = $stdout

... does output to the command line, but I've only tested it on my specific setup so I don't know if that would work for everyone. Also, I'm unsure whether that's how you intend it to work going forward.

If the above is correct and it's just a documentation change then I'd be happy to suggest a pull request. Otherwise, you might want to update the docs to reflect how this should be done in future.

chrislewis60 avatar Feb 24 '14 13:02 chrislewis60

You're right, the docs are out of date, it was changed to work the way you described to make it a bit easier to set the output from Capistrano (our primary consumer). It ought to be a doc change.

leehambley avatar Feb 24 '14 13:02 leehambley

I've suggested a documentation update in the above pull request so I'll close this ticket.

chrislewis60 avatar Feb 24 '14 16:02 chrislewis60

Thanks!

Sent from my Nexus 4. On 24 Feb 2014 17:51, "Chris Lewis" [email protected] wrote:

I've suggested a documentation update in the above pull request so I'll close this ticket.

— Reply to this email directly or view it on GitHubhttps://github.com/capistrano/sshkit/issues/115#issuecomment-35907061 .

leehambley avatar Feb 25 '14 06:02 leehambley