Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop require_nested #242

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions app/models/manageiq/providers/autosde/inventory.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
class ManageIQ::Providers::Autosde::Inventory < ManageIQ::Providers::Inventory
require_nested :Collector
require_nested :Parser
require_nested :Persister

# Default manager for building collector/parser/persister classes
# when failed to get class name from refresh target automatically
def self.default_manager_name
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
class ManageIQ::Providers::Autosde::Inventory::Collector < ManageIQ::Providers::Inventory::Collector
require_nested :StorageManager
require_nested :TargetCollection
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
class ManageIQ::Providers::Autosde::Inventory::Parser < ManageIQ::Providers::Inventory::Parser
require_nested :StorageManager
end
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
class ManageIQ::Providers::Autosde::Inventory::Persister < ManageIQ::Providers::Inventory::Persister
require_nested :StorageManager
require_nested :TargetCollection
end
15 changes: 0 additions & 15 deletions app/models/manageiq/providers/autosde/storage_manager.rb
Original file line number Diff line number Diff line change
@@ -1,19 +1,4 @@
class ManageIQ::Providers::Autosde::StorageManager < ManageIQ::Providers::StorageManager
require_nested :AutosdeClient
require_nested :CloudVolume
require_nested :CloudVolumeSnapshot
require_nested :ClusterVolumeMapping
require_nested :HostInitiatorGroup
require_nested :HostInitiator
require_nested :HostVolumeMapping
require_nested :PhysicalStorage
require_nested :Refresher
require_nested :RefreshWorker
require_nested :StorageResource
require_nested :StorageService
require_nested :VolumeMapping
require_nested :EventCatcher

supports :authentication_status
supports :create
supports :storage_services
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
class ManageIQ::Providers::Autosde::StorageManager::EventCatcher < ManageIQ::Providers::BaseManager::EventCatcher
require_nested :Runner
require_nested :Stream
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
class ManageIQ::Providers::Autosde::StorageManager::RefreshWorker < MiqEmsRefreshWorker
require_nested :Runner
end