knife-swap 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chef/knife/swap_base.rb +5 -1
- data/lib/knife-swap/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4a20167e877e378fbd16c6099df5a3a05735bf6
|
4
|
+
data.tar.gz: fffa800a15ebb5a6c842b6f7bc84fd4ee60155dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eef308b882f388d7daf73799c58577f2af8cbb95705b6eb05202ddaf0686f9aeebf6b663af05a3b07a8816a312885005c13c77e78ce5ee9bce2e448a658b59f1
|
7
|
+
data.tar.gz: deb359d9780c9fd548479475fb0b3713f987e780eaff01c05033305e5da5b5962c3ff803e6bbea7621a48a56e2eea869133d0f27c0db5fbfc85a058b6400d51b
|
data/lib/chef/knife/swap_base.rb
CHANGED
@@ -56,7 +56,11 @@ class Chef
|
|
56
56
|
current_configs.each do |cfg|
|
57
57
|
configs << File.basename(cfg, '.rb').split('-')[1..-1].join('-')
|
58
58
|
end
|
59
|
-
|
59
|
+
if configs.empty? && File.exist?(knife_config)
|
60
|
+
puts Chef::Knife.ui.color("Available configs do not match current knife.rb.\nDid you modify knife.rb or matching knife-<config>.rb?", :red)
|
61
|
+
else
|
62
|
+
puts "#{Chef::Knife.ui.color('current[', :cyan)}#{configs.join(',')}#{Chef::Knife.ui.color(']', :cyan)}"
|
63
|
+
end
|
60
64
|
end
|
61
65
|
|
62
66
|
# copy config to knife.rb
|
data/lib/knife-swap/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-swap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- joenguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef
|