petasos 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/petasos/location.rb +9 -4
- data/lib/petasos/node.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75ae2058204afff470233de4c8f675010026fa87f980623300996e64f2be81c0
|
4
|
+
data.tar.gz: 47145c552902eeca7ecc06e0e251f07e106611c0824c2e60e7e1969e7a519e60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fefbed4eaa078752b83d7511da8803c55d84fa0c8c76d3f7c19d9502e689f2afd6443077dd0506d9699355edff95b0f5496165ea7fa6ee589d72eee55a75655
|
7
|
+
data.tar.gz: b1909c4be422b79d15d38a1b20010baeaa0ca632e9b2b7b0eb87aa5f46278b21c010807dff6ed476726088b37525cbe50dc7dd20c8ccde941080f25115cd663d
|
data/lib/petasos/location.rb
CHANGED
@@ -21,10 +21,11 @@ class Petasos::Location
|
|
21
21
|
completed_files = YAML.load_file(completed_export_file_path)
|
22
22
|
|
23
23
|
process_lifecycle_hooks("after_export", pool, completed_files)
|
24
|
+
|
25
|
+
`mkdir -p logs`
|
26
|
+
`mv #{export_file_path} logs/`
|
27
|
+
`mv #{completed_export_file_path} logs/`
|
24
28
|
end
|
25
|
-
`mkdir -p logs`
|
26
|
-
`mv #{export_file_path} logs/`
|
27
|
-
`mv #{completed_export_file_path} logs/`
|
28
29
|
end
|
29
30
|
|
30
31
|
# get all filenames in this location that belong to this pool
|
@@ -122,7 +123,11 @@ class Petasos::Location
|
|
122
123
|
end
|
123
124
|
|
124
125
|
def read_seen_pool_files(pool)
|
125
|
-
|
126
|
+
unless config["disable_seen"] or pool["disable_seen"]
|
127
|
+
YAML.load_file(File.join(Dir.pwd, "seen_#{config["name"]}_#{pool["name"]}.yaml"))
|
128
|
+
else
|
129
|
+
[]
|
130
|
+
end
|
126
131
|
end
|
127
132
|
|
128
133
|
def update_seen_pool_files(pool, file_paths)
|
data/lib/petasos/node.rb
CHANGED
@@ -24,7 +24,8 @@ class Petasos::Node
|
|
24
24
|
|
25
25
|
def grab_manifest_and_exports
|
26
26
|
`rsync #{config["host"]}:#{config["path"]}/manifest* #{config["name"]}/`
|
27
|
-
|
27
|
+
rysnc_path = "--rsync-path=#{config["rsync_path"]}"
|
28
|
+
`rsync --ignore-missing-args #{rsync_path} --ignore-existing #{config["host"]}:#{config["path"]}/exports* #{config["name"]}/`
|
28
29
|
end
|
29
30
|
|
30
31
|
def grab_seen_file_for_location(location_name, pool_name)
|