chef-fork 0.1.3 → 0.1.4

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: 1d17a69329759230186ad22f20d0351e83064065
4
- data.tar.gz: 735fc1a41ec02e208324b378f582b5d00daae28a
3
+ metadata.gz: 27ab8b8ac21df3a0d5b098212c5ffbeb9e04d451
4
+ data.tar.gz: 36b026de407cc595256b0e3e6c48479ed8eaa1fd
5
5
  SHA512:
6
- metadata.gz: 336ca8301cb1f474636ac53aabd33fd66f6d9b21e9720137b4961a199176a836ebb8675e16bb915f9fa2760f9fa569684d3ba553922cacca1f45bf8fa6417d7f
7
- data.tar.gz: 6586ba56251e95643770a1fd50be7efb974067b947aff31f3641394a6388cb8cd94a38190ea916a24b079a2e9f4811df7315e9372d38f005c1566524c1d8d088
6
+ metadata.gz: ded002d6b1c0f3f4765b3f2ef53a8841abf2cbfad90f2b44dc11844a3303fa33eec65a5add1202e56394e89af8b53b66ffc746dfb5ede4ce671fbbc2e0e10f3e
7
+ data.tar.gz: 3ed37a840b18dec190520d9c095aeb8bd55b46cbda682cac6990057e2ae4ad55d32e2c06a0659091347377b0e31e4dc4916083ba470681e7839d380077f804b4
@@ -2,6 +2,7 @@
2
2
  # -*- coding: utf-8 -*-
3
3
 
4
4
  require "chef"
5
+ require "chef/config"
5
6
  require "chef/knife/core/bootstrap_context"
6
7
  require "erubis"
7
8
  require "json"
@@ -36,10 +37,12 @@ class Chef
36
37
 
37
38
  optparse.on("--bootstrap-version VERSION", "The version of Chef to install") do |value|
38
39
  options[:bootstrap_version] = value
40
+ Chef::Config[:knife][:bootstrap_version] = value
39
41
  end
40
42
 
41
43
  optparse.on("--bootstrap-proxy PROXY_URL", "The proxy server for the node being bootstrapped") do |value|
42
44
  options[:bootstrap_proxy] = value
45
+ Chef::Config[:knife][:bootstrap_proxy] = value
43
46
  end
44
47
 
45
48
  optparse.on("-d DISTRO", "--distro DISTRO", "Bootstrap a distro using a template") do |value|
@@ -64,10 +67,12 @@ class Chef
64
67
 
65
68
  optparse.on("-s SECRET", "--secret SECRET", "The secret key to use to encrypt data bag item values") do |value|
66
69
  options[:secret] = value
70
+ Chef::Config[:knife][:secret] = value
67
71
  end
68
72
 
69
73
  optparse.on("--secret-file SECRET_FILE", "A file containing the secret key to use to encrypt data bag item values") do |value|
70
74
  options[:secret_file] = value
75
+ Chef::Config[:knife][:secret_file] = value
71
76
  end
72
77
  end
73
78
 
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- coding: utf-8 -*-
3
3
 
4
+ require "chef/config"
4
5
  require "shellwords"
5
6
  require "chef/fork/commands"
6
7
 
@@ -32,26 +33,32 @@ class Chef
32
33
 
33
34
  optparse.on("-x USERNAME", "--ssh-user USERNAME", "The ssh username") do |value|
34
35
  options[:ssh_user] = value
36
+ Chef::Config[:knife][:ssh_user] = value
35
37
  end
36
38
 
37
39
  optparse.on("-p PORT", "--ssh-port PORT", "The ssh port") do |value|
38
40
  options[:ssh_port] = value
41
+ Chef::Config[:knife][:ssh_port] = value
39
42
  end
40
43
 
41
44
  optparse.on("-G GATEWAY", "--ssh-gateway GATEWAY", "The ssh gateway") do |value|
42
45
  options[:ssh_gateway] = value
46
+ Chef::Config[:knife][:ssh_gateway] = value
43
47
  end
44
48
 
45
49
  optparse.on("-A", "--[no-]forward-agent", "Enable SSH agent forwarding") do |value|
46
50
  options[:forward_agent] = value
51
+ Chef::Config[:knife][:forward_agent] = value
47
52
  end
48
53
 
49
54
  optparse.on("-i IDENTITY_FILE", "--identity-file IDENTITY_FILE") do |value|
50
55
  options[:identity_file] = value
56
+ Chef::Config[:knife][:identity_file] = value
51
57
  end
52
58
 
53
59
  optparse.on("--[no-]host-key-verify", "Verify host key, disabled by default") do |value|
54
60
  options[:host_key_verify] = value
61
+ Chef::Config[:knife][:host_key_verify] = value
55
62
  end
56
63
 
57
64
  optparse.on("--[no-]dry-run", "Don't take action, only print what would happen") do |value|
@@ -1,5 +1,5 @@
1
1
  class Chef
2
2
  class Fork
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-fork
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yamashita Yuu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-26 00:00:00.000000000 Z
11
+ date: 2015-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler