sshkit icon indicating copy to clipboard operation
sshkit copied to clipboard

SSHKit::Configuration.format doesn't pick up on "BlackHole"

Open hab278 opened this issue 12 years ago • 3 comments

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='

hab278 avatar Dec 12 '13 17:12 hab278

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.

hab278 avatar Dec 12 '13 17:12 hab278

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 avatar Dec 12 '13 19:12 leehambley

@leehambley Coming right up.

hab278 avatar Dec 12 '13 19:12 hab278