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-4.1.3 lib/backup/syncer/rsync/local.rb
venet-backup-4.1.3 lib/backup/syncer/rsync/local.rb
backup-4.1.2 lib/backup/syncer/rsync/local.rb
backup-4.1.1 lib/backup/syncer/rsync/local.rb
backup-4.1.0 lib/backup/syncer/rsync/local.rb
backup-4.0.7 lib/backup/syncer/rsync/local.rb
backup-4.0.6 lib/backup/syncer/rsync/local.rb
backup-4.0.5 lib/backup/syncer/rsync/local.rb
backup-4.0.4 lib/backup/syncer/rsync/local.rb
backup_zh-4.0.3.1 lib/backup/syncer/rsync/local.rb
backup-4.0.3 lib/backup/syncer/rsync/local.rb
backup-4.0.2 lib/backup/syncer/rsync/local.rb
nfm-backup-4.0.1a lib/backup/syncer/rsync/local.rb
backup-4.0.1 lib/backup/syncer/rsync/local.rb
backup-4.0.0 lib/backup/syncer/rsync/local.rb
backup-4.0.0rc1 lib/backup/syncer/rsync/local.rb