-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from jrafanie/drop_require_nested_include_con…
…cern Drop require_nested and include_concern
- Loading branch information
Showing
12 changed files
with
9 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
1 change: 0 additions & 1 deletion
1
app/models/manageiq/providers/cisco_intersight/inventory/collector.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
1 change: 0 additions & 1 deletion
1
app/models/manageiq/providers/cisco_intersight/inventory/parser.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
1 change: 0 additions & 1 deletion
1
app/models/manageiq/providers/cisco_intersight/inventory/persister.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
10 changes: 1 addition & 9 deletions
10
app/models/manageiq/providers/cisco_intersight/physical_infra_manager.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
app/models/manageiq/providers/cisco_intersight/physical_infra_manager/event_catcher.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
2 changes: 1 addition & 1 deletion
2
...models/manageiq/providers/cisco_intersight/physical_infra_manager/firmware_update_task.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
2 changes: 0 additions & 2 deletions
2
...ls/manageiq/providers/cisco_intersight/physical_infra_manager/metrics_collector_worker.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 5 additions & 6 deletions
11
app/models/manageiq/providers/cisco_intersight/physical_infra_manager/operations.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
2 changes: 1 addition & 1 deletion
2
app/models/manageiq/providers/cisco_intersight/physical_infra_manager/physical_server.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
app/models/manageiq/providers/cisco_intersight/physical_infra_manager/provision.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
2 changes: 0 additions & 2 deletions
2
app/models/manageiq/providers/cisco_intersight/physical_infra_manager/refresh_worker.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters