lib/capistrano/notifier/statsd.rb in capistrano-notifier-0.2.0 vs lib/capistrano/notifier/statsd.rb in capistrano-notifier-0.2.1
- old
+ new
@@ -18,10 +18,10 @@
after 'deploy:restart', 'deploy:notify:statsd'
end
end
def command
- "echo #{packet.gsub('|', '\\|')} | nc -w 1 -u #{host} #{port}"
+ "echo -n #{packet.gsub('|', '\\|')} | nc -w 1 -u #{host} #{port}"
end
private
def host