Class: Ansible::Ruby::Modules::Assert
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Assert
- Defined in:
- lib/ansible/ruby/modules/generated/utilities/logic/assert.rb
Overview
This module asserts that given expressions are true with an optional custom message. This module is also supported for Windows targets.
Instance Method Summary collapse
-
#fail_msg ⇒ String?
The customized message used for a failing assertion,This argument was called ‘msg’ before version 2.7, now it’s renamed to ‘fail_msg’ with alias ‘msg’.
-
#success_msg ⇒ String?
The customized message used for a successful assertion.
-
#that ⇒ Array<String>, String
A string expression of the same form that can be passed to the ‘when’ statement,Alternatively, a list of string expressions.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#fail_msg ⇒ String?
Returns The customized message used for a failing assertion,This argument was called ‘msg’ before version 2.7, now it’s renamed to ‘fail_msg’ with alias ‘msg’.
17 |
# File 'lib/ansible/ruby/modules/generated/utilities/logic/assert.rb', line 17 attribute :fail_msg |
#success_msg ⇒ String?
Returns The customized message used for a successful assertion.
21 |
# File 'lib/ansible/ruby/modules/generated/utilities/logic/assert.rb', line 21 attribute :success_msg |
#that ⇒ Array<String>, String
Returns A string expression of the same form that can be passed to the ‘when’ statement,Alternatively, a list of string expressions.
13 |
# File 'lib/ansible/ruby/modules/generated/utilities/logic/assert.rb', line 13 attribute :that |