Sha256: 7387c7c13981261dc6183dadb27f2060153d3a9ba876e187168dfbea82f27850
Contents?: true
Size: 314 Bytes
Versions: 5
Compression:
Stored size: 314 Bytes
Contents
module RsyncCron class Installer def initialize(content, shell) @content = content @shell = shell end def call return if @shell.empty? IO.popen(@shell, "r+") do |pipe| pipe.puts(@content) pipe.close_write end $?.exitstatus.zero? end end end
Version data entries
5 entries across 5 versions & 1 rubygems