knife-chop 0.2.11 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/lib/chef/knife/chop/logging.rb +2 -2
- data/lib/chef/knife/chop_base.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzIzODE4MjQwYjdjYzAzZDBjNThhZGQwOTZiZGVjZmQzOTFhNzE1OQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTFkZDJkOGQxNmJiZDZjODMwYzgyOWI3OTdmZDlhNjFkYWJkZWJlMQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzkzMjBlYTgzNWI5OTQxMTZiYmNiNWM3YzJiZDNlMjcxOWZlMmUyYWZiN2Vi
|
10
|
+
OTNkNTI0NmYwNGExOTVmZDY2NGE4NTRlZThiNjkwMjVlMzQwYmJiZDRhMzU0
|
11
|
+
YmViZjUwZGNmZWVhMzM2YzNlNjIyZDA2MTExOWY5NzE3NDJkZGU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTUwYjA0Y2YwY2MyMmRhZmU4ODhkY2Y0NzEyZTBhMjkxOTFmMzNhNDNhNDYy
|
14
|
+
NDM5MDBjNzMxMDI4ZWE5MGNhNGJjMWUwZGZlYjIyYmFlNGUwZjYwNjQwYjE1
|
15
|
+
YWI3N2MxYjE3YzM3Yjg4N2U1MmRkN2U3NzZjYzdkOTliYWJmNTQ=
|
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.3.0
|
@@ -35,7 +35,7 @@ class Chef
|
|
35
35
|
def #{name}( data = nil, trace = nil )
|
36
36
|
caller = Kernel.caller[3]
|
37
37
|
num = #{num}
|
38
|
-
unless caller.match(%r(/knife
|
38
|
+
unless caller.match(%r(/chef/knife/chop)) # We assume anything else comes via Chef::Log ...
|
39
39
|
num -= 1
|
40
40
|
end
|
41
41
|
if num >= #{logger.level}
|
@@ -216,7 +216,7 @@ class Chef
|
|
216
216
|
:fatal => [:red, :on_white],
|
217
217
|
:todo => :purple,
|
218
218
|
}).scheme
|
219
|
-
scheme[
|
219
|
+
scheme[:todo] = "\e[38;5;55m"
|
220
220
|
l_opts[:color_scheme] = 'christo'
|
221
221
|
layout = ::Logging::Layouts::Pattern.new(l_opts)
|
222
222
|
|
data/lib/chef/knife/chop_base.rb
CHANGED
@@ -424,7 +424,8 @@ class Chef
|
|
424
424
|
|
425
425
|
@config = parse_and_validate_options(@config,source ? source : "ARGV - #{__LINE__}")
|
426
426
|
v = @config[:depends]
|
427
|
-
|
427
|
+
m = (v.is_a?(String) && v.downcase.match(%r/^(no|false|disable|0)/) )
|
428
|
+
@config[:depends] = (v === true) || (m.nil? ? true : false)
|
428
429
|
|
429
430
|
unless @config[:actions]
|
430
431
|
@config[:actions] = [ argv[1].to_sym ] # self.class.name.gsub(%r(Chef::Knife::Chop), '').downcase
|