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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f306398370ae04a07c77b700e78efa4fd006bbe9
4
- data.tar.gz: 31ab41edfb8c3940e83910ee350b8885bbc06797
3
+ metadata.gz: a4a20167e877e378fbd16c6099df5a3a05735bf6
4
+ data.tar.gz: fffa800a15ebb5a6c842b6f7bc84fd4ee60155dd
5
5
  SHA512:
6
- metadata.gz: 95baab62caf735b85b680a450fb175ce45b0b3aca07a04f1d0e5b073d84eb07016a9c3e91d557215a9a3d52307ab0383e256ad56ad0a8e464c3e857b101443c5
7
- data.tar.gz: 979e5206328f62065aaeef7a11ac38f923ff131f038fde01881a8565292effafd632a660829c180c971653c058c7c5a2b8013c12ba5a094f58fdc32e5a37bbd4
6
+ metadata.gz: eef308b882f388d7daf73799c58577f2af8cbb95705b6eb05202ddaf0686f9aeebf6b663af05a3b07a8816a312885005c13c77e78ce5ee9bce2e448a658b59f1
7
+ data.tar.gz: deb359d9780c9fd548479475fb0b3713f987e780eaff01c05033305e5da5b5962c3ff803e6bbea7621a48a56e2eea869133d0f27c0db5fbfc85a058b6400d51b
@@ -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
- puts "#{Chef::Knife.ui.color('current[', :cyan)}#{configs.join(',')}#{Chef::Knife.ui.color(']', :cyan)}"
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
@@ -3,6 +3,6 @@ module Knife
3
3
  # simple module to provide version
4
4
  module Swap
5
5
  # knife-swap version
6
- VERSION = '0.1.0'.freeze
6
+ VERSION = '0.1.1'.freeze
7
7
  end
8
8
  end
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.0
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-18 00:00:00.000000000 Z
11
+ date: 2016-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef