Sha256: a752ee177fd9ea670287461fdc0d823ed55bd21c106b390586ce6135f7327b52
Contents?: true
Size: 431 Bytes
Versions: 1
Compression:
Stored size: 431 Bytes
Contents
require 'rbconfig' global_test 'Find duplicates in hosts file' do |_config| is_windows = (RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/) hosts_file = is_windows ? 'C:\Windows\System32\drivers\etc\hosts' : '/etc/hosts' duplicates = Fulmar::Plugin::CORE4::HostFile.new(hosts_file).check next {severity: :warning, message: "Found duplicates in hosts file: #{duplicates.join(', ')}" } unless duplicates.empty? end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fulmar-plugin-core4-1.1.0 | lib/fulmar/plugin/core4/config_tests/etc_hosts.rb |