Sha256: e159ed630b86ac8d91184a1896e731f23ac115c5aa627301a42eb1fbaa7defcd

Contents?: true

Size: 549 Bytes

Versions: 56

Compression:

Stored size: 549 Bytes

Contents

# encoding: utf-8

module Backup
  module Syncer
    module RSync
      class Local < Base

        def perform!
          log!(:started)

          create_dest_path!
          run("#{ rsync_command } #{ paths_to_push } '#{ dest_path }'")

          log!(:finished)
        end

        private

        # Expand path, since this is local and shell-quoted.
        def dest_path
          @dest_path ||= File.expand_path(path)
        end

        def create_dest_path!
          FileUtils.mkdir_p dest_path
        end

      end
    end
  end
end

Version data entries

56 entries across 56 versions & 7 rubygems

Version Path
backup-ssh-4.4.5 lib/backup/syncer/rsync/local.rb
backup-remote-0.0.19 lib/backup/syncer/rsync/local.rb
cm-backup-1.0.0 lib/backup/syncer/rsync/local.rb
backup-ssh-4.4.4 lib/backup/syncer/rsync/local.rb
backup-ssh-4.4.3 lib/backup/syncer/rsync/local.rb
backup-4.4.1 lib/backup/syncer/rsync/local.rb
backup-remote-0.0.18 lib/backup/syncer/rsync/local.rb
backup-remote-0.0.17 lib/backup/syncer/rsync/local.rb
backup-remote-0.0.16 lib/backup/syncer/rsync/local.rb
backup-remote-0.0.15 lib/backup/syncer/rsync/local.rb
backup-ssh-4.4.2 lib/backup/syncer/rsync/local.rb
backup-ssh-4.4.1 lib/backup/syncer/rsync/local.rb
backup-remote-0.0.14 lib/backup/syncer/rsync/local.rb
backup-remote-0.0.13 lib/backup/syncer/rsync/local.rb
backup-remote-0.0.12 lib/backup/syncer/rsync/local.rb
backup-remote-0.0.11 lib/backup/syncer/rsync/local.rb
backup-ssh-4.4.0 lib/backup/syncer/rsync/local.rb
backup-remote-0.0.10 lib/backup/syncer/rsync/local.rb
backup-remote-0.0.9 lib/backup/syncer/rsync/local.rb
backup-remote-0.0.8 lib/backup/syncer/rsync/local.rb