knife-topo 0.0.9 → 0.0.10

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.
data/README.md CHANGED
@@ -38,7 +38,9 @@ This plugin has been tested with Chef Version 11.12 on Ubuntu 14.04 LTS, and run
38
38
  Note: I've encountered a case (on a Mac) where knife was not configured to use
39
39
  gems on the gem path. If the gem install succeeds but `knife topo`
40
40
  is not a recognized knife command, try the first approach (copy
41
- the ruby plugin scripts into ~/.chef/plugins/knife).
41
+ the ruby plugin scripts into ~/.chef/plugins/knife) or install knife topo using the embedded gem:
42
+
43
+ $ /opt/chef/embedded/bin/gem install knife-topo
42
44
 
43
45
  # Usage #
44
46
 
@@ -1,5 +1,5 @@
1
1
  module Knife
2
2
  module Topo
3
- VERSION = "0.0.9"
3
+ VERSION = "0.0.10"
4
4
  end
5
5
  end
@@ -84,8 +84,8 @@ class Chef
84
84
  topo.create
85
85
  rescue Net::HTTPServerException => e
86
86
  raise unless e.to_s =~ /^409/
87
- msg = "Topology already exists - do you want to update it";
88
- msg + " to version " + topo['version'] if topo['version']
87
+ msg = "Topology already exists - do you want to update it"
88
+ msg = msg + " to version " + topo['version'] if topo['version']
89
89
  ui.confirm(msg, true, false)
90
90
  topo.save
91
91
  end
@@ -109,8 +109,9 @@ class Chef
109
109
  else
110
110
  ui.info "No nodes found for topology #{display_name(topo_hash)}"
111
111
  end
112
-
112
+
113
113
  ui.info("Topology #{display_name(topo_hash)} created")
114
+ ui.info("Build information: " + topo_hash['buildstamp']) if topo_hash['buildstamp']
114
115
 
115
116
  end
116
117
 
@@ -76,6 +76,7 @@ class Chef
76
76
  msg = "Updating topology #{display_name(current_topo)}"
77
77
  msg = msg + " to version " + topo['version'] if topo['version']
78
78
  ui.info msg
79
+ ui.info("Build information: " + topo['buildstamp']) if topo['buildstamp']
79
80
 
80
81
  update_topo(topo)
81
82
 
@@ -17,6 +17,7 @@
17
17
  #
18
18
 
19
19
  require 'chef/data_bag'
20
+ require 'chef/node'
20
21
  require 'chef/encrypted_data_bag_item'
21
22
  require 'chef/environment'
22
23
  require 'chef/knife/core/object_loader'
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-topo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Christine Draper
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-09-27 00:00:00.000000000 Z
12
+ date: 2014-12-21 00:00:00.000000000 Z
12
13
  dependencies: []
13
14
  description: Knife plugin that to manage topologies of nodes
14
15
  email:
@@ -17,41 +18,42 @@ executables: []
17
18
  extensions: []
18
19
  extra_rdoc_files: []
19
20
  files:
20
- - LICENSE
21
- - README.md
22
- - knife-topo.gemspec
23
- - lib/chef/knife/topo/version.rb
21
+ - lib/chef/knife/topo_export.rb
24
22
  - lib/chef/knife/topo_bootstrap.rb
23
+ - lib/chef/knife/topo/version.rb
25
24
  - lib/chef/knife/topo_cookbook_create.rb
26
- - lib/chef/knife/topo_cookbook_upload.rb
27
25
  - lib/chef/knife/topo_create.rb
28
- - lib/chef/knife/topo_export.rb
29
- - lib/chef/knife/topo_import.rb
30
26
  - lib/chef/knife/topo_update.rb
27
+ - lib/chef/knife/topo_import.rb
31
28
  - lib/chef/knife/topology_helper.rb
29
+ - lib/chef/knife/topo_cookbook_upload.rb
30
+ - LICENSE
31
+ - README.md
32
+ - knife-topo.gemspec
32
33
  homepage: https://github.com/christinedraper/knife-topo
33
34
  licenses:
34
35
  - Apache License (2.0)
35
- metadata: {}
36
36
  post_install_message:
37
37
  rdoc_options: []
38
38
  require_paths:
39
39
  - lib
40
40
  required_ruby_version: !ruby/object:Gem::Requirement
41
+ none: false
41
42
  requirements:
42
- - - ">="
43
+ - - ! '>='
43
44
  - !ruby/object:Gem::Version
44
45
  version: '0'
45
46
  required_rubygems_version: !ruby/object:Gem::Requirement
47
+ none: false
46
48
  requirements:
47
- - - ">="
49
+ - - ! '>='
48
50
  - !ruby/object:Gem::Version
49
51
  version: '0'
50
52
  requirements: []
51
53
  rubyforge_project:
52
- rubygems_version: 2.2.1
54
+ rubygems_version: 1.8.23
53
55
  signing_key:
54
- specification_version: 4
56
+ specification_version: 3
55
57
  summary: Knife plugin that to manage topologies of nodes
56
58
  test_files: []
57
59
  has_rdoc:
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 567dce9e707b529d85df97a58de7c9a180ef57d4
4
- data.tar.gz: 0550b76dc324cd4966d013d41f0efe34fd2264ee
5
- SHA512:
6
- metadata.gz: 3bbc66a61636b8d1563cfe271ef6772839b875cbf1fe56c0f23e031b278f4a7a76dd9f4bf1007ae60c13a97ddd31165618c0acb2f34f725391991b4b19c54a53
7
- data.tar.gz: 66260591db0aa228aab5e4a5648012d313f9ff7df9b78ed671d7d37af9004682391b600c3f41b4a33d8d364d6c571925092ca0220a6f531dbed10bef0a2ea105