Sha256: fe8cfbbc3935a81f2c3cdf593213cbbf9d71a1485bc3fc7cc3f23b3e31743099
Contents?: true
Size: 314 Bytes
Versions: 1
Compression:
Stored size: 314 Bytes
Contents
module RsyncCron class Scheduler def initialize(content, shell) @content = content @shell = shell end def call return if @shell.empty? IO.popen(@shell, "a+") do |pipe| pipe.puts(@content) pipe.close_write end $?.exitstatus.zero? end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rsync_cron-1.0.6 | lib/rsync_cron/scheduler.rb |