Skip to content

Commit

Permalink
Merge pull request #105 from jrafanie/drop_require_nested_include_con…
Browse files Browse the repository at this point in the history
…cern

Drop require_nested and include_concern
  • Loading branch information
agrare authored Feb 6, 2024
2 parents 9b75025 + 3993cd3 commit ca05af4
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 29 deletions.
3 changes: 0 additions & 3 deletions app/models/manageiq/providers/cisco_intersight/inventory.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
module ManageIQ::Providers::CiscoIntersight
class Inventory < ManageIQ::Providers::Inventory
require_nested :Collector
require_nested :Parser
require_nested :Persister
end
end
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
module ManageIQ::Providers::CiscoIntersight
class Inventory::Collector < ManageIQ::Providers::Inventory::Collector
require_nested :PhysicalInfraManager
end
end
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
module ManageIQ::Providers::CiscoIntersight
class Inventory::Parser < ManageIQ::Providers::Inventory::Parser
require_nested :PhysicalInfraManager
end
end
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
module ManageIQ::Providers::CiscoIntersight
class Inventory::Persister < ManageIQ::Providers::Inventory::Persister
require_nested :PhysicalInfraManager
end
end
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
module ManageIQ::Providers::CiscoIntersight
class PhysicalInfraManager < ManageIQ::Providers::PhysicalInfraManager
require_nested :MetricsCapture
require_nested :MetricsCollectorWorker
require_nested :Refresher
require_nested :RefreshWorker
require_nested :EventCatcher
require_nested :EventParser
require_nested :PhysicalServer
require_nested :PhysicalServerProfileTemplate
supports :catalog

include Vmdb::Logging
include ManagerMixin
include_concern "Operations"
include Operations

supports :create

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module ManageIQ::Providers::CiscoIntersight
class PhysicalInfraManager::EventCatcher \
< ManageIQ::Providers::BaseManager::EventCatcher
require_nested :Runner
end
end
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module ManageIQ::Providers::CiscoIntersight
class PhysicalInfraManager::FirmwareUpdateTask \
< ManageIQ::Providers::PhysicalInfraManager::FirmwareUpdateTask
include_concern 'StateMachine'
include StateMachine
end
end
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
module ManageIQ::Providers::CiscoIntersight
class PhysicalInfraManager::MetricsCollectorWorker < ManageIQ::Providers::BaseManager::MetricsCollectorWorker
require_nested :Runner

self.default_queue_name = "cisco_intersight"

def friendly_name
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
module ManageIQ::Providers::CiscoIntersight
module PhysicalInfraManager::Operations
extend ActiveSupport::Concern

include_concern "Power"
include_concern "Led"
include_concern "Firmware"
include_concern "Lifecycle"
include_concern "ServerProfileAssignment"
include Power
include Led
include Firmware
include Lifecycle
include ServerProfileAssignment
end
end
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module ManageIQ::Providers::CiscoIntersight
class PhysicalInfraManager::PhysicalServer < ::PhysicalServer
include_concern 'Provisioning'
include Provisioning

def self.display_name(number = 1)
n_('Physical Server (CiscoIntersight)', 'Physical Servers (CiscoIntersight)', number)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module ManageIQ::Providers::CiscoIntersight
class PhysicalInfraManager::Provision \
< ::PhysicalServerProvisionTask
include_concern 'StateMachine'
include StateMachine
end
end
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
module ManageIQ::Providers::CiscoIntersight
class PhysicalInfraManager::RefreshWorker < ::MiqEmsRefreshWorker
require_nested :Runner

def self.settings_name
:ems_refresh_worker_cisco_intersight_physical_infra
end
Expand Down

0 comments on commit ca05af4

Please sign in to comment.