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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OTU4NDI0M2ZmNWI5YTk0NTAxZmU5Mzk1YTY3M2I5NDc3NjFlOWYyYw==
4
+ YzIzODE4MjQwYjdjYzAzZDBjNThhZGQwOTZiZGVjZmQzOTFhNzE1OQ==
5
5
  data.tar.gz: !binary |-
6
- YTRiYzYzNzM0ZTRmZDNlZDQzYmM5MDc1NDNhYmQ2YzNhMjQ0NjkyMg==
6
+ MTFkZDJkOGQxNmJiZDZjODMwYzgyOWI3OTdmZDlhNjFkYWJkZWJlMQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NDFlOTA2ZTEyYWEwMDQyY2ZjMWUyNzI5YWQ4YWUyZTBkZjZkM2RkYmY4YWJh
10
- MGNjMjFjMWRmMDZjMTQzYzk4NmNiNjBhY2UxMDIyZGM0YTE0OTY1NzE1MTYw
11
- NGQ3YjlmY2Q5NTU0MWRiNTc0N2Q3MjIxOTc2YWM5ZjlkZDIzYjk=
9
+ YzkzMjBlYTgzNWI5OTQxMTZiYmNiNWM3YzJiZDNlMjcxOWZlMmUyYWZiN2Vi
10
+ OTNkNTI0NmYwNGExOTVmZDY2NGE4NTRlZThiNjkwMjVlMzQwYmJiZDRhMzU0
11
+ YmViZjUwZGNmZWVhMzM2YzNlNjIyZDA2MTExOWY5NzE3NDJkZGU=
12
12
  data.tar.gz: !binary |-
13
- ZGNkYjg0Zjk1MjczNTY2ZjQ0ZDAwYzJiYjIwNGE4ZmU3MmM5MGM2NmEyNzk1
14
- ZGE0ZTM1ZjlhMzViMjQ0Yjk3YTY4ODg2OWY1YTE2NjZlYTcwOTEwOGQzNWFk
15
- MWI3Mjc3YWVmZTQ4YjE4ZGNhYzFlYzM2Y2U3YTY4YmFmODFiNGQ=
13
+ OTUwYjA0Y2YwY2MyMmRhZmU4ODhkY2Y0NzEyZTBhMjkxOTFmMzNhNDNhNDYy
14
+ NDM5MDBjNzMxMDI4ZWE5MGNhNGJjMWUwZGZlYjIyYmFlNGUwZjYwNjQwYjE1
15
+ YWI3N2MxYjE3YzM3Yjg4N2U1MmRkN2U3NzZjYzdkOTliYWJmNTQ=
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- knife-chop (0.2.11)
4
+ knife-chop (0.3.0)
5
5
  awesome_print
6
6
  chef (~> 11.6.2)
7
7
  colorize
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.11
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-chop/))
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['todo'] = "\e[38;5;55m"
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
 
@@ -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
- @config[:depends] = (v === true) || ((v.is_a?(String) && v.downcase.match(%r/^(no|false|disable|0)/) ).nil? ? false : true)
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-chop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.11
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christo De Lange