Sha256: a28b4ff3c8b57ddf1262d3c64102adcbcb2a851e910bdfe1b3fea450fdfd2944
Contents?: true
Size: 793 Bytes
Versions: 28
Compression:
Stored size: 793 Bytes
Contents
module PoolParty class Rsyncmirror virtual_resource(:rsyncmirror) do def loaded(opts={}, parent=self) @parent = parent has_exec(opts.merge({:command => "#{cloud.remote_rsync_command} --no-implied-dirs --delete-excluded #{Base.user}@master:#{dir}/ #{dir}/".safe_quote, :name => "rsync-#{name}"})) end # Since git is not a native type, we have to say which core resource # it is using to be able to require it def class_type_name "exec" end # Because we are requiring an exec, instead of a built-in package of the git, we have to overload # the to_s method and prepend it with the same name as above def key "rsync-#{name}" end end end end
Version data entries
28 entries across 28 versions & 2 rubygems