forked from ManageIQ/manageiq-providers-ansible_tower
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate model display names from locale/en.yml to plugin
- Loading branch information
Showing
14 changed files
with
56 additions
and
0 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
4 changes: 4 additions & 0 deletions
4
app/models/manageiq/providers/ansible_tower/automation_manager/amazon_credential.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,3 +1,7 @@ | ||
class ManageIQ::Providers::AnsibleTower::AutomationManager::AmazonCredential < ManageIQ::Providers::AnsibleTower::AutomationManager::CloudCredential | ||
include ManageIQ::Providers::AnsibleTower::Shared::AutomationManager::AmazonCredential | ||
|
||
def self.display_name(number = 1) | ||
n_('Credential (Amazon)', 'Credentials (Amazon)', number) | ||
end | ||
end |
4 changes: 4 additions & 0 deletions
4
app/models/manageiq/providers/ansible_tower/automation_manager/azure_credential.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,4 +1,8 @@ | ||
# This corresponds to Ansible Tower's Azure Resource Manager (azure_rm) type credential | ||
class ManageIQ::Providers::AnsibleTower::AutomationManager::AzureCredential < ManageIQ::Providers::AnsibleTower::AutomationManager::CloudCredential | ||
include ManageIQ::Providers::AnsibleTower::Shared::AutomationManager::AzureCredential | ||
|
||
def self.display_name(number = 1) | ||
n_('Credential (Microsoft Azure)', 'Credentials (Microsoft Azure)', number) | ||
end | ||
end |
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
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
4 changes: 4 additions & 0 deletions
4
app/models/manageiq/providers/ansible_tower/automation_manager/google_credential.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,3 +1,7 @@ | ||
class ManageIQ::Providers::AnsibleTower::AutomationManager::GoogleCredential < ManageIQ::Providers::AnsibleTower::AutomationManager::CloudCredential | ||
include ManageIQ::Providers::AnsibleTower::Shared::AutomationManager::GoogleCredential | ||
|
||
def self.display_name(number = 1) | ||
n_('Credential (Google)', 'Credentials (Google)', number) | ||
end | ||
end |
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
4 changes: 4 additions & 0 deletions
4
app/models/manageiq/providers/ansible_tower/automation_manager/machine_credential.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,3 +1,7 @@ | ||
class ManageIQ::Providers::AnsibleTower::AutomationManager::MachineCredential < ManageIQ::Providers::AnsibleTower::AutomationManager::Credential | ||
include ManageIQ::Providers::AnsibleTower::Shared::AutomationManager::MachineCredential | ||
|
||
def self.display_name(number = 1) | ||
n_('Credential (Machine)', 'Credentials (Machine)', number) | ||
end | ||
end |
4 changes: 4 additions & 0 deletions
4
app/models/manageiq/providers/ansible_tower/automation_manager/network_credential.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,3 +1,7 @@ | ||
class ManageIQ::Providers::AnsibleTower::AutomationManager::NetworkCredential < ManageIQ::Providers::AnsibleTower::AutomationManager::Credential | ||
include ManageIQ::Providers::AnsibleTower::Shared::AutomationManager::NetworkCredential | ||
|
||
def self.display_name(number = 1) | ||
n_('Credential (Network)', 'Credentials (Network)', number) | ||
end | ||
end |
4 changes: 4 additions & 0 deletions
4
app/models/manageiq/providers/ansible_tower/automation_manager/openstack_credential.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,3 +1,7 @@ | ||
class ManageIQ::Providers::AnsibleTower::AutomationManager::OpenstackCredential < ManageIQ::Providers::AnsibleTower::AutomationManager::CloudCredential | ||
include ManageIQ::Providers::AnsibleTower::Shared::AutomationManager::OpenstackCredential | ||
|
||
def self.display_name(number = 1) | ||
n_('Credential (OpenStack)', 'Credentials (OpenStack)', number) | ||
end | ||
end |
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
4 changes: 4 additions & 0 deletions
4
app/models/manageiq/providers/ansible_tower/automation_manager/satellite6_credential.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,3 +1,7 @@ | ||
class ManageIQ::Providers::AnsibleTower::AutomationManager::Satellite6Credential < ManageIQ::Providers::AnsibleTower::AutomationManager::CloudCredential | ||
include ManageIQ::Providers::AnsibleTower::Shared::AutomationManager::Satellite6Credential | ||
|
||
def self.display_name(number = 1) | ||
n_('Credential (Satellite)', 'Credentials (Satellite)', number) | ||
end | ||
end |
4 changes: 4 additions & 0 deletions
4
app/models/manageiq/providers/ansible_tower/automation_manager/scm_credential.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,3 +1,7 @@ | ||
class ManageIQ::Providers::AnsibleTower::AutomationManager::ScmCredential < ManageIQ::Providers::AnsibleTower::AutomationManager::Credential | ||
include ManageIQ::Providers::AnsibleTower::Shared::AutomationManager::ScmCredential | ||
|
||
def self.display_name(number = 1) | ||
n_('Credential (SCM)', 'Credentials (SCM)', number) | ||
end | ||
end |
4 changes: 4 additions & 0 deletions
4
app/models/manageiq/providers/ansible_tower/automation_manager/vmware_credential.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,3 +1,7 @@ | ||
class ManageIQ::Providers::AnsibleTower::AutomationManager::VmwareCredential < ManageIQ::Providers::AnsibleTower::AutomationManager::CloudCredential | ||
include ManageIQ::Providers::AnsibleTower::Shared::AutomationManager::VmwareCredential | ||
|
||
def self.display_name(number = 1) | ||
n_('Credential (VMware)', 'Credentials (VMware)', number) | ||
end | ||
end |