lib/rbfs/command.rb in rbfs-0.0.6 vs lib/rbfs/command.rb in rbfs-0.0.7
- old
+ new
@@ -40,14 +40,10 @@
logger.error "#{host}: #{result[:exitcode].to_i}"
else
logger.info "#{host}: #{result[:exitcode].to_i}"
end
result[:output].split("\n").each do |line|
- if result[:exitcode] != 0
- logger.error " | #{line}"
- else
- logger.info " | #{line}"
- end
+ logger.puts " | #{line}"
end
success = false if result[:exitcode] != 0
end
success
end