From 383d30431f60a543348f8a535993d378f137fe5a Mon Sep 17 00:00:00 2001 From: d-m-u Date: Tue, 13 Feb 2018 10:43:40 -0500 Subject: [PATCH] Rename network module to not overrun network class --- lib/manageiq/{network => network_discovery}/discovery.rb | 4 ++-- lib/manageiq/{network => network_discovery}/ipmi/discovery.rb | 0 lib/manageiq/{network => network_discovery}/port.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename lib/manageiq/{network => network_discovery}/discovery.rb (94%) rename lib/manageiq/{network => network_discovery}/ipmi/discovery.rb (100%) rename lib/manageiq/{network => network_discovery}/port.rb (97%) diff --git a/lib/manageiq/network/discovery.rb b/lib/manageiq/network_discovery/discovery.rb similarity index 94% rename from lib/manageiq/network/discovery.rb rename to lib/manageiq/network_discovery/discovery.rb index 434f4cc7f911..2a4adf0d4717 100644 --- a/lib/manageiq/network/discovery.rb +++ b/lib/manageiq/network_discovery/discovery.rb @@ -1,9 +1,9 @@ require 'net/ping' module ManageIQ - module Network + module NetworkDiscovery module IPMI - autoload :Discovery, 'manageiq/network/ipmi/discovery' + autoload :Discovery, 'manageiq/network_discovery/ipmi/discovery' end module Discovery diff --git a/lib/manageiq/network/ipmi/discovery.rb b/lib/manageiq/network_discovery/ipmi/discovery.rb similarity index 100% rename from lib/manageiq/network/ipmi/discovery.rb rename to lib/manageiq/network_discovery/ipmi/discovery.rb diff --git a/lib/manageiq/network/port.rb b/lib/manageiq/network_discovery/port.rb similarity index 97% rename from lib/manageiq/network/port.rb rename to lib/manageiq/network_discovery/port.rb index 379f1b4de389..81e442dbd97e 100644 --- a/lib/manageiq/network/port.rb +++ b/lib/manageiq/network_discovery/port.rb @@ -2,7 +2,7 @@ require 'socket' module ManageIQ - module Network + module NetworkDiscovery class Port def self.all_open?(ost, ports) ports.all? { |port| open?(ost, port) }