Method: Runpuppet::Client#sh

Defined in:
lib/runpuppet/client.rb

#sh(cmd) ⇒ Object

simplified copy of rake`s sh



71
72
73
74
75
76
77
78
79
# File 'lib/runpuppet/client.rb', line 71

def sh(cmd)
  puts cmd
  IO.popen(cmd) do |pipe|
    while str = pipe.gets
      puts str
    end
  end
  $?.success?
end