dutiful 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/dutiful/storage.rb +2 -2
- data/lib/dutiful/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c6accd15285afd3686ae7f9734291ed27ffd6409
|
|
4
|
+
data.tar.gz: 180766e86e1aa148189557e706168bc16c237d4a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: defc3556e4b1652c792fb7a9e8a0da99d085d6c9e291e1857fe7bbc03c9902dd31243ff20636a188ca637ba0e288406574b648375dfad59e3b83d73b0ecb3217
|
|
7
|
+
data.tar.gz: e5b1708c80fe35343b227b75141c3ef7a6627f4b54afdfe9bbf5868b293a99cddae5bfda251b843ae610f6b9f688df0daa591869498837faecb6c82325364900
|
data/lib/dutiful/storage.rb
CHANGED
|
@@ -35,16 +35,16 @@ class Dutiful::Storage
|
|
|
35
35
|
end
|
|
36
36
|
|
|
37
37
|
def backup(file)
|
|
38
|
+
create_dir file
|
|
38
39
|
Rsync.run file.full_path.shellescape, file.backup_path.shellescape, '--recursive'
|
|
39
40
|
end
|
|
40
41
|
|
|
41
42
|
def restore(file)
|
|
43
|
+
create_dir file
|
|
42
44
|
Rsync.run file.backup_path.shellescape, file.full_path.shellescape, '--recursive'
|
|
43
45
|
end
|
|
44
46
|
|
|
45
47
|
def sync(file)
|
|
46
|
-
create_dir file
|
|
47
|
-
|
|
48
48
|
if file.exist?
|
|
49
49
|
if file.has_backup? && file.backup_timestamp > file.timestamp
|
|
50
50
|
restore file
|
data/lib/dutiful/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dutiful
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bruno Pinto
|
|
@@ -156,5 +156,5 @@ rubyforge_project:
|
|
|
156
156
|
rubygems_version: 2.4.5
|
|
157
157
|
signing_key:
|
|
158
158
|
specification_version: 4
|
|
159
|
-
summary: dutiful-0.0.
|
|
159
|
+
summary: dutiful-0.0.9
|
|
160
160
|
test_files: []
|