petasos 0.4.0 → 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: 75ae2058204afff470233de4c8f675010026fa87f980623300996e64f2be81c0
4
- data.tar.gz: 47145c552902eeca7ecc06e0e251f07e106611c0824c2e60e7e1969e7a519e60
3
+ metadata.gz: 416a801bc14a8016dcf094035b3b59a4cf7739a4e7e9b473da80afa17dd9769e
4
+ data.tar.gz: 77c23fe0641d5d358568671523c89f97470be8be8708a7c8efc3d05c07e75063
5
5
  SHA512:
6
- metadata.gz: 3fefbed4eaa078752b83d7511da8803c55d84fa0c8c76d3f7c19d9502e689f2afd6443077dd0506d9699355edff95b0f5496165ea7fa6ee589d72eee55a75655
7
- data.tar.gz: b1909c4be422b79d15d38a1b20010baeaa0ca632e9b2b7b0eb87aa5f46278b21c010807dff6ed476726088b37525cbe50dc7dd20c8ccde941080f25115cd663d
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
- rysnc_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.0
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Myers