diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2020-02-20 16:19:54 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2020-02-20 16:19:54 -0800 |
commit | 6362d9fa1b6967c2971992df00eecbb8ae3ae9ca (patch) | |
tree | 3a5b2f3f011bb27b07612559beb65b6fcc6ab711 | |
parent | c4e3398505aaa188777051c2d5e839b79c53c3e2 (diff) | |
download | chef-6362d9fa1b6967c2971992df00eecbb8ae3ae9ca.tar.gz |
add require for CGIlcg/unescape
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r-- | lib/chef/http/http_request.rb | 3 | ||||
-rw-r--r-- | lib/chef/provider/package/cab.rb | 3 | ||||
-rw-r--r-- | lib/chef/provider/package/msu.rb | 3 | ||||
-rw-r--r-- | lib/chef/provider/package/windows.rb | 3 | ||||
-rw-r--r-- | lib/chef/provider/remote_file/ftp.rb | 1 | ||||
-rw-r--r-- | lib/chef/provider/remote_file/local_file.rb | 1 | ||||
-rw-r--r-- | lib/chef/provider/remote_file/sftp.rb | 1 | ||||
-rw-r--r-- | lib/chef/resource/apt_repository.rb | 3 |
8 files changed, 13 insertions, 5 deletions
diff --git a/lib/chef/http/http_request.rb b/lib/chef/http/http_request.rb index 406cd2df81..8ce6bee583 100644 --- a/lib/chef/http/http_request.rb +++ b/lib/chef/http/http_request.rb @@ -5,7 +5,7 @@ # Author:: Christopher Brown (<cb@chef.io>) # Author:: Christopher Walters (<cw@chef.io>) # Author:: Daniel DeLeo (<dan@chef.io>) -# Copyright:: Copyright 2009-2016, 2010-2018, Chef Software Inc. +# Copyright:: Copyright 2009-2016, 2010-2020, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -21,6 +21,7 @@ # limitations under the License. # require "uri" unless defined?(URI) +require "cgi" unless defined?(CGI) require "net/http" unless defined?(Net::HTTP) require_relative "../dist" diff --git a/lib/chef/provider/package/cab.rb b/lib/chef/provider/package/cab.rb index edfcf71fb6..cce267879d 100644 --- a/lib/chef/provider/package/cab.rb +++ b/lib/chef/provider/package/cab.rb @@ -1,6 +1,6 @@ # # Author:: Vasundhara Jagdale (<vasundhara.jagdale@msystechnologies.com>) -# Copyright:: Copyright 2015-2019, Chef Software Inc. +# Copyright:: Copyright 2015-2020, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -21,6 +21,7 @@ require_relative "../../resource/cab_package" require_relative "../../mixin/shell_out" require_relative "../../mixin/uris" require_relative "../../mixin/checksum" +require "cgi" unless defined?(CGI) class Chef class Provider diff --git a/lib/chef/provider/package/msu.rb b/lib/chef/provider/package/msu.rb index de44ac553f..76ea89060d 100644 --- a/lib/chef/provider/package/msu.rb +++ b/lib/chef/provider/package/msu.rb @@ -1,6 +1,6 @@ # # Author:: Nimisha Sharad (<nimisha.sharad@msystechnologies.com>) -# Copyright:: Copyright 2015-2016, Chef Software, Inc. +# Copyright:: Copyright 2015-2020, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -27,6 +27,7 @@ require_relative "cab" require_relative "../../util/path_helper" require_relative "../../mixin/uris" require_relative "../../mixin/checksum" +require "cgi" unless defined?(CGI) class Chef class Provider diff --git a/lib/chef/provider/package/windows.rb b/lib/chef/provider/package/windows.rb index 0bad69f9b7..3e0f2422cf 100644 --- a/lib/chef/provider/package/windows.rb +++ b/lib/chef/provider/package/windows.rb @@ -1,6 +1,6 @@ # # Author:: Bryan McLellan <btm@loftninjas.org> -# Copyright:: Copyright 2014-2018, Chef Software Inc. +# Copyright:: Copyright 2014-2020, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -21,6 +21,7 @@ require_relative "../../resource/windows_package" require_relative "../package" require_relative "../../util/path_helper" require_relative "../../mixin/checksum" +require "cgi" unless defined?(CGI) class Chef class Provider diff --git a/lib/chef/provider/remote_file/ftp.rb b/lib/chef/provider/remote_file/ftp.rb index f4beb2f597..e2b32ddaf6 100644 --- a/lib/chef/provider/remote_file/ftp.rb +++ b/lib/chef/provider/remote_file/ftp.rb @@ -17,6 +17,7 @@ # require "uri" unless defined?(URI) +require "cgi" unless defined?(CGI) require "tempfile" unless defined?(Tempfile) require "net/ftp" require_relative "../remote_file" diff --git a/lib/chef/provider/remote_file/local_file.rb b/lib/chef/provider/remote_file/local_file.rb index 92961947f8..c68c4eecd5 100644 --- a/lib/chef/provider/remote_file/local_file.rb +++ b/lib/chef/provider/remote_file/local_file.rb @@ -17,6 +17,7 @@ # require "uri" unless defined?(URI) +require "cgi" unless defined?(CGI) require "tempfile" unless defined?(Tempfile) require_relative "../remote_file" diff --git a/lib/chef/provider/remote_file/sftp.rb b/lib/chef/provider/remote_file/sftp.rb index 2f02ac8ee6..43654bd67c 100644 --- a/lib/chef/provider/remote_file/sftp.rb +++ b/lib/chef/provider/remote_file/sftp.rb @@ -17,6 +17,7 @@ # require "uri" unless defined?(URI) +require "cgi" unless defined?(CGI) require "tempfile" unless defined?(Tempfile) require "net/sftp" require_relative "../remote_file" diff --git a/lib/chef/resource/apt_repository.rb b/lib/chef/resource/apt_repository.rb index 5f1ed76e21..31f34596ac 100644 --- a/lib/chef/resource/apt_repository.rb +++ b/lib/chef/resource/apt_repository.rb @@ -1,6 +1,6 @@ # # Author:: Thom May (<thom@chef.io>) -# Copyright:: 2016-2019, Chef Software Inc. +# Copyright:: 2016-2020, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -19,6 +19,7 @@ require_relative "../resource" require_relative "../http/simple" require "tmpdir" unless defined?(Dir.mktmpdir) +require "cgi" unless defined?(CGI) class Chef class Resource |