Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize requires for non-omnibus installs #324

Merged
merged 1 commit into from
Aug 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/mixlib/install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#

require "mixlib/versioning"
require "mixlib/shellout"
require "mixlib/shellout" unless defined?(Mixlib::ShellOut)

require_relative "install/backend"
require_relative "install/options"
Expand Down
4 changes: 2 additions & 2 deletions lib/mixlib/install/backend/package_router.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
# limitations under the License.
#

require "json"
require "json" unless defined?(JSON)
require_relative "../artifact_info"
require_relative "base"
require_relative "../product"
require_relative "../product_matrix"
require_relative "../util"
require_relative "../dist"
require "mixlib/versioning"
require "net/http"
require "net/http" unless defined?(Net::HTTP)

module Mixlib
class Install
Expand Down
2 changes: 1 addition & 1 deletion lib/mixlib/install/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#

require_relative "../install"
require "thor"
require "thor" unless defined?(Thor)

module Mixlib
class Install
Expand Down
4 changes: 2 additions & 2 deletions lib/mixlib/install/generator/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
# limitations under the License.
#

require "erb"
require "ostruct"
require "erb" unless defined?(Erb)
require "ostruct" unless defined?(OpenStruct)
require_relative "../util"
require_relative "../dist"

Expand Down