lib/kitchen/transport/ssh.rb in test-kitchen-2.6.0 vs lib/kitchen/transport/ssh.rb in test-kitchen-2.7.0
- old
+ new
@@ -15,16 +15,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.
require_relative "../../kitchen"
-require "fileutils"
-require "net/ssh"
+require "fileutils" unless defined?(FileUtils)
+require "net/ssh" unless defined?(Net::SSH)
require "net/ssh/gateway"
require "net/ssh/proxy/http"
require "net/scp"
-require "timeout"
-require "benchmark"
+require "timeout" unless defined?(Timeout)
+require "benchmark" unless defined?(Benchmark)
module Kitchen
module Transport
# Wrapped exception for any internally raised SSH-related errors.
#