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

Version Path
auser-poolparty-0.2.59 lib/poolparty/plugins/rsyncmirror.rb
auser-poolparty-0.2.60 lib/poolparty/plugins/rsyncmirror.rb
auser-poolparty-0.2.61 lib/poolparty/plugins/rsyncmirror.rb
auser-poolparty-0.2.62 lib/poolparty/plugins/rsyncmirror.rb
auser-poolparty-0.2.63 lib/poolparty/plugins/rsyncmirror.rb
auser-poolparty-0.2.64 lib/poolparty/plugins/rsyncmirror.rb
auser-poolparty-0.2.65 lib/poolparty/plugins/rsyncmirror.rb
auser-poolparty-0.2.66 lib/poolparty/plugins/rsyncmirror.rb
auser-poolparty-0.2.67 lib/poolparty/plugins/rsyncmirror.rb
auser-poolparty-0.2.68 lib/poolparty/plugins/rsyncmirror.rb
auser-poolparty-0.2.69 lib/poolparty/plugins/rsyncmirror.rb
auser-poolparty-0.2.70 lib/poolparty/plugins/rsyncmirror.rb
auser-poolparty-0.2.71 lib/poolparty/plugins/rsyncmirror.rb
auser-poolparty-0.2.72 lib/poolparty/plugins/rsyncmirror.rb
auser-poolparty-0.2.74 lib/poolparty/plugins/rsyncmirror.rb
auser-poolparty-0.2.76 lib/poolparty/plugins/rsyncmirror.rb
auser-poolparty-0.2.77 lib/poolparty/plugins/rsyncmirror.rb
auser-poolparty-0.2.78 lib/poolparty/plugins/rsyncmirror.rb
auser-poolparty-0.2.79 lib/poolparty/plugins/rsyncmirror.rb
auser-poolparty-0.2.80 lib/poolparty/plugins/rsyncmirror.rb