lib/cookbook-omnifetch/artifactory.rb in cookbook-omnifetch-0.10.0 vs lib/cookbook-omnifetch/artifactory.rb in cookbook-omnifetch-0.10.1
- old
+ new
@@ -1,8 +1,8 @@
require_relative "base"
-require "mixlib/archive"
-require "tmpdir"
+require "mixlib/archive" unless defined?(Mixlib::Archive)
+require "tmpdir" unless defined?(Dir.mktmpdir)
module CookbookOmnifetch
class ArtifactoryLocation < BaseLocation