knife-zero 0.1.3 → 0.2.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b1ce8070bad6a04c9d6fd866098aefe6d2d78aaf
4
- data.tar.gz: 64f3c7b379110c288fec152ad1d76f0259bbc5b7
3
+ metadata.gz: a32a5fe620a54193b033256128e075e5f9cf6489
4
+ data.tar.gz: c899819b89589847f709f029d8a7999671ad6a26
5
5
  SHA512:
6
- metadata.gz: 7a4dc51d98c6ede89ccc3db50042c0b3a3463d270e7e04d7423ca12efbdaa14121933755817a11302dbdb097bf4543dd8df70566c66184cc208627ef53a767e9
7
- data.tar.gz: 688b4b7edd34c159c18da690cb46d6034ace318d36049dba1a83b952240a2541f48f7616d9f52b3568a6a7266631c58770a634603b8abbe741ecf39d0eddebbe
6
+ metadata.gz: b717a39a9403d4fd5635c5d325aaaab190f1f2b5abae8c1bb591d17ceef75d5f77212d6768fd620cecedba1d371c97cb1ceab8803dd10bc9de79b65ca6da4732
7
+ data.tar.gz: c5c277db98f52fab444aab6adf26d90f26cc5648b3328da113c5d2dda1bff1bf8e76b599ba16955857856915ccb17acd7c4bbfdd53d11cf5244f9033618b6d79
data/CHANGELOG.md CHANGED
@@ -1,6 +1,14 @@
1
1
  # Changelog of knife-zero
2
2
 
3
- ## v0.1.1
3
+ ## v0.2.0
4
+
5
+ - Feature: Support Why-run.
6
+
7
+ ## v0.1.3
8
+
9
+ - Bug: require zero_base HT: @Yasushi
10
+
11
+ ## v0.1.2
4
12
 
5
13
  - Update: Issue #2 Support sudo for zero chef-client
6
14
 
@@ -48,6 +48,7 @@ class Chef
48
48
  s = "#{client_path}"
49
49
  s << ' -l debug' if @config[:verbosity] and @config[:verbosity] >= 2
50
50
  s << " -S http://127.0.0.1:8889"
51
+ s << " -W" if @config[:why_run]
51
52
  s
52
53
  end
53
54
  end
@@ -55,6 +55,12 @@ class Chef
55
55
  :boolean => true,
56
56
  :default => true
57
57
 
58
+ option :why_run,
59
+ :short => '-W',
60
+ :long => '--why-run',
61
+ :description => 'Enable whyrun mode on chef-client run at remote node.',
62
+ :boolean => true
63
+
58
64
  end
59
65
  end
60
66
 
@@ -11,6 +11,7 @@ class Chef
11
11
  s << ' -l debug' if @config[:verbosity] and @config[:verbosity] >= 2
12
12
  s << " -E #{bootstrap_environment}" if chef_version.to_f != 0.9 # only use the -E option on Chef 0.10+
13
13
  s << " -S http://127.0.0.1:8889"
14
+ s << " -W" if @config[:why_run]
14
15
  s
15
16
  end
16
17
  end
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Zero
3
- VERSION = "0.1.3"
3
+ VERSION = "0.2.0"
4
4
  MAJOR, MINOR, TINY = VERSION.split('.')
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-zero
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - sawanoboly