classify_cluster 0.0.4 → 0.0.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.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -17,19 +17,15 @@ module ClassifyCluster
17
17
  end
18
18
  cluster.resources.each do |resource|
19
19
  file.write(output("#{resource.type} { #{resource.name.inspect}:", :indent => 1))
20
- count = 0
21
20
  resource.options.each_pair do |key, value|
22
- file.write(output("#{key} => #{value.inspect}#{"," if count >= resource.options.size}", :indent => 2))
23
- count += 1
21
+ file.write(output("#{key} => #{value.inspect},", :indent => 2))
24
22
  end
25
23
  file.write(output("}", :indent => 1))
26
24
  end
27
25
  node.resources.each do |resource|
28
26
  file.write(output("#{resource.type} { #{resource.name.inspect}:", :indent => 1))
29
- count = 0
30
27
  resource.options.each_pair do |key, value|
31
- file.write(output("#{key} => #{value.inspect}#{"," if count >= resource.options.size}", :indent => 2))
32
- count += 1
28
+ file.write(output("#{key} => #{value.inspect},", :indent => 2))
33
29
  end
34
30
  file.write(output("}", :indent => 1))
35
31
  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: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sean Cashin