petasos 0.3.1 → 0.4.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b7bd8aa04cae7535d319a4b2d9141e2f40bb95b8342613541fe605022735c9b3
4
- data.tar.gz: d418dabaf63b7a0b6b2777cd30a3a333bcbc2ee59a60cbd63ceceda9cb78485d
3
+ metadata.gz: 75ae2058204afff470233de4c8f675010026fa87f980623300996e64f2be81c0
4
+ data.tar.gz: 47145c552902eeca7ecc06e0e251f07e106611c0824c2e60e7e1969e7a519e60
5
5
  SHA512:
6
- metadata.gz: 51ad7a4fb5de50153261a857597836cb302c1f6f8263ab850e25dfac91a1b3c8dab751e4222da75c597f259360d9cf7894dc9185fc7034c8046d98e0068cdccb
7
- data.tar.gz: 7acb74142c0bf285cad8d715505fb27625dd18ec90cab3f9763c7068ca393bbbb8a01fbd840ce3070721dd323be0ead3b4a1a6fc122154924ae5df4227de3d70
6
+ metadata.gz: 3fefbed4eaa078752b83d7511da8803c55d84fa0c8c76d3f7c19d9502e689f2afd6443077dd0506d9699355edff95b0f5496165ea7fa6ee589d72eee55a75655
7
+ data.tar.gz: b1909c4be422b79d15d38a1b20010baeaa0ca632e9b2b7b0eb87aa5f46278b21c010807dff6ed476726088b37525cbe50dc7dd20c8ccde941080f25115cd663d
@@ -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
- YAML.load_file(File.join(Dir.pwd, "seen_#{config["name"]}_#{pool["name"]}.yaml"))
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
- `rsync --ignore-missing-args --ignore-existing #{config["host"]}:#{config["path"]}/exports* #{config["name"]}/`
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: petasos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Myers