summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarc A. Paradise <marc.paradise@gmail.com>2019-04-26 12:39:30 -0400
committerMarc A. Paradise <marc.paradise@gmail.com>2019-04-29 18:11:28 -0400
commit79e3ca77e0bcd11ffa670d042aef50fcc25c9b65 (patch)
tree5a95e0dd59b4a3d3f830450891c3d25d306f55e9 /lib
parent6976b774e44405a4a566715c9c93e756bdd6c9a0 (diff)
downloadchef-79e3ca77e0bcd11ffa670d042aef50fcc25c9b65.tar.gz
Move most bootstrap requires into deps()
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/knife/bootstrap.rb13
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/chef/knife/bootstrap.rb b/lib/chef/knife/bootstrap.rb
index b2c4b72f5e..d46bf455e9 100644
--- a/lib/chef/knife/bootstrap.rb
+++ b/lib/chef/knife/bootstrap.rb
@@ -18,11 +18,6 @@
require "chef/knife"
require "chef/knife/data_bag_secret_options"
-require "erubis"
-require "chef/knife/bootstrap/chef_vault_handler"
-require "chef/knife/bootstrap/client_builder"
-require "chef/util/path_helper"
-require "chef/dist"
class Chef
class Knife
@@ -390,7 +385,13 @@ class Chef
attr_reader :connection
deps do
+ require "erubis"
+
require "chef/json_compat"
+ require "chef/util/path_helper"
+ require "chef/knife/bootstrap/chef_vault_handler"
+ require "chef/knife/bootstrap/client_builder"
+ require "chef/knife/bootstrap/train_connector"
end
banner "knife bootstrap [PROTOCOL://][USER@]FQDN (options)"
@@ -623,8 +624,6 @@ class Chef
end
def do_connect(conn_options)
- require "chef/knife/bootstrap/train_connector"
-
@connection = TrainConnector.new(host_descriptor, connection_protocol, conn_options)
connection.connect!
end