-
Notifications
You must be signed in to change notification settings - Fork 900
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SCM options and SCMCredential to Ansible Tower Automation Manager
- Loading branch information
Showing
8 changed files
with
32 additions
and
21 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
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,5 @@ | ||
class ConfigurationScriptSource < ApplicationRecord | ||
has_many :configuration_script_payloads | ||
belongs_to :authentication | ||
belongs_to :manager, :class_name => "ExtManagementSystem" | ||
end |
2 changes: 2 additions & 0 deletions
2
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
class ManageIQ::Providers::AnsibleTower::AutomationManager::ScmCredential < ManageIQ::Providers::AutomationManager::Authentication | ||
end |
11 changes: 11 additions & 0 deletions
11
db/migrate/20170203161253_add_scm_attributes_to_configuration_script_source.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
class AddScmAttributesToConfigurationScriptSource < ActiveRecord::Migration[5.0] | ||
def change | ||
add_column :configuration_script_sources, :scm_type, :string | ||
add_column :configuration_script_sources, :scm_url, :string | ||
add_column :configuration_script_sources, :scm_branch, :string | ||
add_column :configuration_script_sources, :scm_clean, :boolean | ||
add_column :configuration_script_sources, :scm_delete_on_update, :boolean | ||
add_column :configuration_script_sources, :scm_update_on_launch, :boolean | ||
add_column :configuration_script_sources, :authentication_id, :bigint | ||
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
...dels/miq_ae_service_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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module MiqAeMethodService | ||
class MiqAeServiceManageIQ_Providers_AnsibleTower_AutomationManager_ScmCredential < MiqAeServiceManageIQ_Providers_AutomationManager_Authentication | ||
end | ||
end |
5 changes: 5 additions & 0 deletions
5
...miq_ae_service_manageiq-providers-ansible_tower-automation_manager-scm_credential_spec.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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
describe MiqAeMethodService::MiqAeServiceManageIQ_Providers_AnsibleTower_AutomationManager_ScmCredential do | ||
it "get the service model class" do | ||
expect { described_class }.not_to raise_error | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.