knife-topo 2.0.4 → 2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d2b424d953de3fe9fe46d76562b29bdfc08b27d
4
- data.tar.gz: 1f4c0b21f7dbf6b285b159486f4b38c63be7fd21
3
+ metadata.gz: d6ad82c95351c67f014a35a6d088bb972750215f
4
+ data.tar.gz: da4b9da927c3be0125e1b8826de6ce133cf3d8eb
5
5
  SHA512:
6
- metadata.gz: 12e20c73920d5db8e0a30a3e72f3b7ca31980c7d1092655d8bea5b5868726fa86dc205f25ad31f4e84e8a8b6667e660ca8ffe5b8612c41a919c8ab004e7f9b80
7
- data.tar.gz: 3e55e3ac7a10033755fd72d1c9c593dcbd995523ee0db6aa3e03d4d4939f0ea5b9d36d5ec40e2554585a6eb2d49ddace61d5c70426bb077cc0e9dc6cce0eae2e
6
+ metadata.gz: abf39e70c36e93c6254c45ecbe850fa1dcc9b3996d96222324ba0dd40e60a7b1f7017480abdeffe8da993f3d2a0befcaf533eed54ebb9c48a8714cfe7247b0bd
7
+ data.tar.gz: b34b279781e5cfb2e93df9c52bb29eedf843473c3de2d7faf83f12484bea9ac7936f35332fd8e2be0ddfdc17b3254715c16bca0132b8310244a6651c4a236769
@@ -91,7 +91,8 @@ module KnifeTopo
91
91
  def cookbook_path
92
92
  paths = @config['cookbook_path']
93
93
  return unless paths
94
- paths.first
94
+ # cookbook path can be an array or a string
95
+ paths.is_a?(Array) ? (paths.first || './cookbooks') : paths
95
96
  end
96
97
 
97
98
  def upload_artifacts(context = {})
@@ -1,4 +1,4 @@
1
1
  # version
2
2
  module KnifeTopo
3
- VERSION = '2.0.4'.freeze
3
+ VERSION = '2.0.5'.freeze
4
4
  end
@@ -56,7 +56,7 @@ class Chef
56
56
  def raw_data=(new_data)
57
57
  @strategy = new_data['strategy'] || 'direct_to_node'
58
58
  new_data['id'] ||= (new_data['name'] || 'undefined')
59
- # new_data['name'] ||= (new_data['id'])
59
+ new_data['name'] ||= (new_data['id'])
60
60
  new_data['nodes'] ||= []
61
61
  super(normalize(new_data))
62
62
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-topo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christine Draper
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-13 00:00:00.000000000 Z
11
+ date: 2016-03-31 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Knife-topo uses a JSON file to capture a topology of nodes, which can
14
14
  be loaded into Chef and bootstrapped