petasos 0.4.1 → 0.4.2
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/petasos/distributor.rb +2 -0
- data/lib/petasos/node.rb +5 -3
- data/lib/petasos.rb +2 -0
- 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: 416a801bc14a8016dcf094035b3b59a4cf7739a4e7e9b473da80afa17dd9769e
|
4
|
+
data.tar.gz: 77c23fe0641d5d358568671523c89f97470be8be8708a7c8efc3d05c07e75063
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c78d7f8c16ebd748640c3b6b7170e7b63368220e53dc4285d770d86bce1cc7914c62c3e89744f350ce4e52f24827fbbcf466b0bff6e2bf27009f789e051b37d8
|
7
|
+
data.tar.gz: 579ee6c2ca4e937dd6dc2bd541d35a4e5d52a4a720f7c95dee4487ee4c89e0348126acb3a68edc326bf65524c5f459db370eb104403551ca96eeb5eb6ffd9fa3
|
data/lib/petasos/distributor.rb
CHANGED
@@ -46,6 +46,7 @@ class Petasos::Distributor
|
|
46
46
|
}
|
47
47
|
}
|
48
48
|
|
49
|
+
puts "petasos: compiling manifests"
|
49
50
|
@manifests.each_pair do |node_name, manifest_list|
|
50
51
|
manifest_list.each do |manifest|
|
51
52
|
manifest["imports"].each_pair do |pool_name, import_hash|
|
@@ -69,6 +70,7 @@ class Petasos::Distributor
|
|
69
70
|
# "canonical_exporters"=>[["petasos-node-a", "linux-laptop-source"]]}}
|
70
71
|
|
71
72
|
# Process the exports files and return them as completed.
|
73
|
+
puts "petasos: processing exports"
|
72
74
|
FileList.new(File.join(Dir.pwd, "**/exports_*")).each do |exports_file_path|
|
73
75
|
from_node_name = File.basename(File.dirname(exports_file_path))
|
74
76
|
from_node = find_node(from_node_name)
|
data/lib/petasos/node.rb
CHANGED
@@ -23,9 +23,11 @@ class Petasos::Node
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def grab_manifest_and_exports
|
26
|
-
`
|
27
|
-
|
28
|
-
`rsync
|
26
|
+
`scp #{config["host"]}:#{config["path"]}/manifest* #{config["name"]}/`
|
27
|
+
`scp #{config["host"]}:#{config["path"]}/exports* #{config["name"]}/`
|
28
|
+
# `rsync #{config["host"]}:#{config["path"]}/manifest* #{config["name"]}/`
|
29
|
+
# rsync_path = "--rsync-path=#{config["rsync_path"]}"
|
30
|
+
# `rsync --ignore-missing-args #{rsync_path} --ignore-existing #{config["host"]}:#{config["path"]}/exports* #{config["name"]}/`
|
29
31
|
end
|
30
32
|
|
31
33
|
def grab_seen_file_for_location(location_name, pool_name)
|
data/lib/petasos.rb
CHANGED
@@ -12,6 +12,7 @@ class Petasos
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def process_locations
|
15
|
+
puts "petasos: processing locations"
|
15
16
|
# look for petasos_location-*.yaml files
|
16
17
|
# and pass each one to a petasos location manager
|
17
18
|
FileList.new("petasos_location-*.yaml").each do |location_file|
|
@@ -22,6 +23,7 @@ class Petasos
|
|
22
23
|
end
|
23
24
|
|
24
25
|
def process_distribution
|
26
|
+
puts "petasos: processing distribution"
|
25
27
|
# look for petasos_distribution-*.yaml files
|
26
28
|
# and pass each one to a petasos distribution
|
27
29
|
FileList.new("petasos_distribution-*.yaml").each do |distribution_file|
|