petasos 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d78e509dced8c616d311efe6774f29b29c5cb1148a855eda3dbae9036474bf4a
4
- data.tar.gz: 0d3606dbd0f2dbae2a77a6b15c788cbd273c1b7b24e916715b79f7a3c363f04f
3
+ metadata.gz: 416a801bc14a8016dcf094035b3b59a4cf7739a4e7e9b473da80afa17dd9769e
4
+ data.tar.gz: 77c23fe0641d5d358568671523c89f97470be8be8708a7c8efc3d05c07e75063
5
5
  SHA512:
6
- metadata.gz: d360b3e52e138aa204d9b7425aa209bb649bfb11186eae0b3fe4fdf643666906b7c031c01a85a86072f619572a9eb894de190e8f20f63a158adae05dd05bcfb1
7
- data.tar.gz: 3bd8e35d8bf352524c14951921d487b1f5ee8212ddf1e218fed4bf83841c5dd4bc7f7eea58f6d8cda32594504276914372677bc1deeda62867a47d5ce64014ed
6
+ metadata.gz: c78d7f8c16ebd748640c3b6b7170e7b63368220e53dc4285d770d86bce1cc7914c62c3e89744f350ce4e52f24827fbbcf466b0bff6e2bf27009f789e051b37d8
7
+ data.tar.gz: 579ee6c2ca4e937dd6dc2bd541d35a4e5d52a4a720f7c95dee4487ee4c89e0348126acb3a68edc326bf65524c5f459db370eb104403551ca96eeb5eb6ffd9fa3
@@ -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
- `rsync #{config["host"]}:#{config["path"]}/manifest* #{config["name"]}/`
27
- rsync_path = "--rsync-path=#{config["rsync_path"]}"
28
- `rsync --ignore-missing-args #{rsync_path} --ignore-existing #{config["host"]}:#{config["path"]}/exports* #{config["name"]}/`
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|
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.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Myers