Class: Chef::Knife::Ssh
- Inherits:
-
Object
- Object
- Chef::Knife::Ssh
- Defined in:
- lib/ssp/application/remote.rb
Instance Method Summary collapse
Instance Method Details
#print_data(host, data) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/ssp/application/remote.rb', line 6 def print_data(host, data) if data =~ /\n/ data.split(/\n/).each { |d| print_data(host, d) } else unless config[:dont_print_hosts] padding = @longest - host.length print h.color(host, :cyan) print " " * padding end puts data end end |