Class: Chef::Knife::Ssh

Inherits:
Object
  • Object
show all
Defined in:
lib/ssp/application/remote.rb

Instance Method Summary collapse

Instance Method Details



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