SSHKit::Configuration.format doesn't pick up on "BlackHole"
Gives the following error.
uninitialized constant SSHKit::Formatter::Blackhole
/sshkit/lib/sshkit/configuration.rb:47:in `const_get'
/sshkit/lib/sshkit/configuration.rb:47:in `formatter'
/sshkit/lib/sshkit/configuration.rb:29:in `format='
Looks like it's this line
SSHKit::Formatter.const_get(format.capitalize).new($stdout)
This capitalizes the first letter and lowercases the rest. BlackHole gets converted to Blackhole.
Can you send a patch?
Lee Hambley
http://lee.hambley.name/ +49 (0) 170 298 5667
On 12 December 2013 18:59, hab278 [email protected] wrote:
Looks like it's this linehttps://github.com/capistrano/sshkit/blob/master/lib/sshkit/configuration.rb#L47
SSHKit::Formatter.const_get(format.capitalize).new($stdout)
This capitalizes the first letter and lowercases the resthttp://www.ruby-doc.org/core-1.9.2/String.html#method-i-capitalize. BlackHole gets converted to Blackhole.
— Reply to this email directly or view it on GitHubhttps://github.com/capistrano/sshkit/issues/74#issuecomment-30445821 .
@leehambley Coming right up.