classify_cluster 0.4.4 → 0.4.5

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.
@@ -1,3 +1,3 @@
1
1
  module ClassifyCluster
2
- VERSION = "0.4.4"
2
+ VERSION = "0.4.5"
3
3
  end
@@ -14,22 +14,22 @@ module ClassifyCluster
14
14
  cluster.nodes.each_pair do |fqdn, node|
15
15
  file.write(output(%Q%node "#{node.default? ? 'default' : node.fqdn}" {%))
16
16
  cluster.variables.each_pair do |key, value|
17
- file.write(output("$#{key}=#{value.inspect.gsub(/\$/, '\$')}", :indent => 1))
17
+ file.write(output("$#{key}=#{value.inspect.gsub(/\$/, '\$')}", :indent => 1)) unless value.blank?
18
18
  end
19
19
  node.variables.each_pair do |key, value|
20
- file.write(output("$#{key}=#{value.inspect.gsub(/\$/, '\$')}", :indent => 1))
20
+ file.write(output("$#{key}=#{value.inspect.gsub(/\$/, '\$')}", :indent => 1)) unless value.blank?
21
21
  end
22
22
  cluster.resources.each do |resource|
23
23
  file.write(output("#{resource.type} { #{resource.name.inspect}:", :indent => 1))
24
24
  resource.options.each_pair do |key, value|
25
- file.write(output("#{key} => #{value.inspect},", :indent => 2))
25
+ file.write(output("#{key} => #{value.inspect},", :indent => 2)) unless value.blank?
26
26
  end
27
27
  file.write(output("}", :indent => 1))
28
28
  end
29
29
  node.resources.each do |resource|
30
30
  file.write(output("#{resource.type} { #{resource.name.inspect}:", :indent => 1))
31
31
  resource.options.each_pair do |key, value|
32
- file.write(output("#{key} => #{value.inspect},", :indent => 2))
32
+ file.write(output("#{key} => #{value.inspect},", :indent => 2)) unless value.blank?
33
33
  end
34
34
  file.write(output("}", :indent => 1))
35
35
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: classify_cluster
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 4
10
- version: 0.4.4
9
+ - 5
10
+ version: 0.4.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sean Cashin
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-26 00:00:00 Z
18
+ date: 2011-08-01 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: commander