require 'net/ssh' require 'open3' require 'class_config' require 'logger' require 'delegate' module Datacenter extend ClassConfig attr_config :logger, Logger.new('/dev/null') attr_config :process_cache_expiration, 2 end Dir.glob(File.expand_path('datacenter/**/*.rb', File.dirname(__FILE__))).sort.each { |f| require f } if RUBY_ENGINE == 'jruby' Net::SSH::Transport::Algorithms::ALGORITHMS.values.each { |algs| algs.reject! { |a| a =~ /^ecd(sa|h)-sha2/ } } Net::SSH::KnownHosts::SUPPORTED_TYPE.reject! { |t| t =~ /^ecd(sa|h)-sha2/ } end