Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New interface methods for role list and role argspec (#920)
New interface methods for role list and role argspec This adds two new API methods to the runner interface: get_role_list() - Get a list of roles that have defined an argument specification. get_role_argspec() - Get the argument specification for a given role. Reviewed-by: Sam Doran <sdoran@redhat.com> Reviewed-by: David Shrewsbury <None> Reviewed-by: None <None>
- Loading branch information
Showing
8 changed files
with
420 additions
and
8 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
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
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
17 changes: 17 additions & 0 deletions
17
...integration/fixtures/projects/music/project/roles/Into_The_Mystic/meta/argument_specs.yml
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,17 @@ | ||
--- | ||
argument_specs: | ||
main: | ||
short_description: The main entry point for the Into_The_Mystic role. | ||
options: | ||
foghorn: | ||
type: "bool" | ||
required: false | ||
default: true | ||
description: "If true, the foghorn blows." | ||
soul: | ||
type: "str" | ||
required: true | ||
description: "Type of soul to rock" | ||
choices: | ||
- "gypsy" | ||
- "normal" |
Oops, something went wrong.