knife-zero 1.8.6 → 1.8.7

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: 11563bfb7405a0e1b1ecc2e77b173d3cc8c14838
4
- data.tar.gz: 26a8138040e088c18a3d5f3c118a9594419e9bc1
3
+ metadata.gz: 23d02b4ab827fdc2d4b0a9b82e30177b0694a9f2
4
+ data.tar.gz: 9428d56194ca579503718e9517f4dbd9b696dac7
5
5
  SHA512:
6
- metadata.gz: 25695cdf6be7cb4754c0a686f00e36c20dc54d4f7b2ea64381070994ef358069f7e145660ea2aa1af63563a52ab3d11daa1ec6fac566839afeef0ad5ee7e11c8
7
- data.tar.gz: e4edf70d45cbf1315e0d0e19bc9584b17bb5430744f20b28c285d86ea60a818fa9d3868a00047b44e51940f944a8ca37ace44fb019d5b250d8aa31cf0d0a824b
6
+ metadata.gz: cab667682f056eb055fa6cf1a464f70da24dc935f6bcc253121d9b3072dccf26e4f8e0e13463954da39876c5a8206778d306cb75bdd0329bac19efea11fde950
7
+ data.tar.gz: 08ef833e2df63ac66064974bba5ab50320d3449b9050df2b237656294e8bfd2f6955428f6e470255c1fe5d40dbdb6610f68142dec433f53d6b66299b46680442
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## v1.8.7
6
+
7
+ - Follow master: environment _default is not set by default since 12.5
8
+ - Replace string letelals to instance of String.
9
+
5
10
  ## v1.8.6
6
11
 
7
12
  - Feature: add new attribute knife_zero.ssh_url at bootstrap.
@@ -43,7 +43,7 @@ class Chef
43
43
  def start_chef_client
44
44
  client_path = @config[:use_sudo] || Chef::Config[:knife][:use_sudo] ? 'sudo ' : ''
45
45
  client_path = @config[:chef_client_path] ? "#{client_path}#{@config[:chef_client_path]}" : "#{client_path}chef-client"
46
- s = "#{client_path}"
46
+ s = String.new("#{client_path}")
47
47
  s << ' -l debug' if @config[:verbosity] and @config[:verbosity] >= 2
48
48
  s << " -S http://127.0.0.1:#{::Knife::Zero::Helper.zero_remote_port}"
49
49
  s << " -o #{@config[:override_runlist]}" if @config[:override_runlist]
@@ -35,11 +35,12 @@ class Chef
35
35
  if @chef_config[:knife_zero]
36
36
  if @config[:bootstrap_converge]
37
37
  client_path = @chef_config[:chef_client_path] || 'chef-client'
38
- s = "#{client_path} -j /etc/chef/first-boot.json"
38
+ s = String.new("#{client_path} -j /etc/chef/first-boot.json")
39
39
  s << ' -l debug' if @config[:verbosity] and @config[:verbosity] >= 2
40
- s << " -E #{bootstrap_environment}" if ::Chef::VERSION.to_f != 0.9 # only use the -E option on Chef 0.10+
40
+ s << " -E #{bootstrap_environment}" unless bootstrap_environment.nil?
41
41
  s << " -S http://127.0.0.1:#{::Knife::Zero::Helper.zero_remote_port}"
42
42
  s << " -W" if @config[:why_run]
43
+ Chef::Log.info "Remote command: " + s
43
44
  s
44
45
  else
45
46
  "echo Execution of Chef-Client has been canceled due to bootstrap_converge is false."
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Zero
3
- VERSION = "1.8.6"
3
+ VERSION = "1.8.7"
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: 1.8.6
4
+ version: 1.8.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - sawanoboly