knife-zero 1.14.0 → 1.15.0

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: b2ca6c982be1fa5404e37c73f80bca74ffb5b5da
4
- data.tar.gz: 38b7857bd2a8511bf6c6212b98325819f9f62123
3
+ metadata.gz: 4d422744e83e78c07f23663b5bca62be126aa323
4
+ data.tar.gz: 176220ade6c9557708da92a1e09f62d7749393a8
5
5
  SHA512:
6
- metadata.gz: 73079ae9adb2719676ed8027e80eb93b7332cb3b04a34f47c3f06aba09cf96ecf18a13046da241fc7ec5684225b94a852e3b69a49473c8c7a799767d440ddfd5
7
- data.tar.gz: 40d5da47577fc32dd1b828bab486c2576326b135dafef146fb6bd1dd0cdd744a0f11eec8de4d0a7c14262d3fedacd64a8353b82aebbe9d2496125933c2f6a45e
6
+ metadata.gz: 4b37c886f5b4cf650a19da872a524c00410f5ed84f986071e5efab720366a693611abec1721b5419d38d7dcc310232bcff694d52bde067e8d128e5a5325d2677
7
+ data.tar.gz: 8e7b2de341999f08962b0fc251f18ee86d7bd547cea669a98347c9cb71902e92e50952bfbe03f151410fded223c0acf6a1c595f8b38e45b85959f9974ec1c288
data/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ Empty.
6
+
7
+ ## v1.15.0
8
+
9
+ - Feature: specified policy_group from option.
10
+ - `knife serve` and `chef push`.
11
+
5
12
  ## v1.14.0
6
13
 
7
14
  - Change: support policy_document_native_api by default. #85
@@ -18,7 +18,6 @@ class Chef
18
18
  self.options = Bootstrap.options.merge(self.options)
19
19
  self.options.delete :node_ssl_verify_mode
20
20
  self.options.delete :node_verify_api_cert
21
- self.options.delete :policy_group
22
21
 
23
22
  ## Override to use nil by default. It should be create PR
24
23
  option :ssh_user,
@@ -39,7 +38,11 @@ class Chef
39
38
  :default => nil
40
39
 
41
40
  ## For support policy_document_databag(old style)
42
- self.options[:policy_name][:description] = "Policy name to use (It'll be set with policy_group=local)"
41
+ self.options[:policy_name][:description] = "Policy name to use (F.Y.I: Default policy_group=local)"
42
+
43
+ ## Set `local` to default policy_group
44
+ self.options[:policy_group][:description] = "Policy group name to use (--policy-name must also be given). 'local' by default"
45
+ self.options[:policy_group][:default] = "local"
43
46
 
44
47
  def run
45
48
  ## Command hook before_bootstrap (After launched Chef-Zero)
@@ -31,12 +31,11 @@ class Chef
31
31
 
32
32
  ## For support policy_document_native_api
33
33
  if @config[:policy_name]
34
- @config[:policy_group] = "local"
35
34
  client_rb << ["\n", "use_policyfile true",
36
35
  "versioned_cookbooks true",
37
36
  "policy_document_native_api true",
38
37
  "policy_name #{@config[:policy_name]}",
39
- "policy_group local"].join("\n")
38
+ "policy_group #{@config[:policy_group]}"].join("\n")
40
39
  end
41
40
 
42
41
  if @config[:appendix_config]
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Zero
3
- VERSION = "1.14.0"
3
+ VERSION = "1.15.0"
4
4
  MAJOR, MINOR, TINY = VERSION.split('.')
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-zero
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.0
4
+ version: 1.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - sawanoboly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-19 00:00:00.000000000 Z
11
+ date: 2016-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler