corl 0.4.23 → 0.4.24

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
  SHA1:
3
- metadata.gz: d9f1651b77d15462f9a7c1951cdd5764d98b4499
4
- data.tar.gz: e14e2dc2e1e723ff80a966c9c198d7677084985e
3
+ metadata.gz: e6bf577243e8547180dfba960639bf2bc4a924f2
4
+ data.tar.gz: 2f0100c0679d386c62dcf9f1cba831970ffb4087
5
5
  SHA512:
6
- metadata.gz: 9b9ac46be10b8bde82c7cafa62de05f1b54975d886027dac63edd8ae080a1095f3b964fa4a31e72d8ba1624b115a52acfb0cccff63699926da4144e208e17537
7
- data.tar.gz: 363e2bd24af39522e8fffcabd95af09a01710770ffafb0518d18fba3f1df44937505b377e615dfaa03b06f521e1882306458bd5657c09e0e0da22194df0d062b
6
+ metadata.gz: 6d823a375d6e2a76a795e38514e5123d48f39a1fac58ef3c641aa47669b65641748238a1b368a4e582013af530b664cc031bde58ac687bee7de83e7f484f83a7
7
+ data.tar.gz: 1dba62d74a618462531a2449ab0b80c51127dd82b794ee26c8f67841c10d0bf9dfa7f2c1bfe37eef72adcbfa2bf439e35d603453b65b7c854eb7f7cb61598d2e
data/Gemfile.lock CHANGED
@@ -36,7 +36,7 @@ GIT
36
36
  PATH
37
37
  remote: .
38
38
  specs:
39
- corl (0.4.23)
39
+ corl (0.4.24)
40
40
  facter (~> 1.7)
41
41
  fog (~> 1.20)
42
42
  hiera (~> 1.3)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.23
1
+ 0.4.24
data/bin/corl CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'corl'
3
3
 
4
- if nucleon_locate :vagrant
4
+ if ! CORL.admin? && nucleon_locate(:vagrant)
5
5
  system(*[ 'vagrant', 'corl', ARGV ].flatten)
6
6
  exit($?.exitstatus)
7
7
  else
data/corl.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: corl 0.4.23 ruby lib
5
+ # stub: corl 0.4.24 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "corl"
9
- s.version = "0.4.23"
9
+ s.version = "0.4.24"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
@@ -4,6 +4,14 @@ class Puppetnode < CORL.plugin_class(:provisioner)
4
4
 
5
5
  @@puppet_lock = Mutex.new
6
6
 
7
+ #---
8
+
9
+ @@status = {}
10
+
11
+ def self.status
12
+ @@status
13
+ end
14
+
7
15
  #-----------------------------------------------------------------------------
8
16
  # Provisioner plugin interface
9
17
 
@@ -30,7 +38,7 @@ class Puppetnode < CORL.plugin_class(:provisioner)
30
38
  level = levels[msg.level]
31
39
 
32
40
  if [ :warn, :error ].include?(level[:send])
33
- myself.status = 111
41
+ ::CORL::Provisioner::Puppetnode.status[name] = 111
34
42
  end
35
43
 
36
44
  CORL.ui_group("puppetnode::#{name}(#{CORL.yellow(level[:name])})", :cyan) do |ui|
@@ -256,7 +264,7 @@ class Puppetnode < CORL.plugin_class(:provisioner)
256
264
  begin
257
265
  ui.info("Starting catalog generation")
258
266
 
259
- myself.status = code.success
267
+ @@status[id] = code.success
260
268
 
261
269
  start_time = Time.now
262
270
  node = init_puppet(profiles)
@@ -295,7 +303,7 @@ class Puppetnode < CORL.plugin_class(:provisioner)
295
303
  Puppet.log_exception(error)
296
304
  end
297
305
  end
298
- success = false if myself.status != code.success
306
+ success = false if @@status[id] != code.success
299
307
  success
300
308
  end
301
309
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: corl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.23
4
+ version: 0.4.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Webb