lib/rsync_cron/command.rb in rsync_cron-1.0.8 vs lib/rsync_cron/command.rb in rsync_cron-1.1.0
- old
+ new
@@ -12,10 +12,10 @@
@log = log
@io = io
end
def to_s
- return "echo 'rsync not installed'" if @name.empty?
+ return @io.puts "rsync not installed" if @name.empty?
"#{@name} #{@options} #{@src} #{@dest}#{log}"
end
def valid?
[@src, @dest].all? do |host|