Class: Ansible::Ruby::Modules::Expect
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Expect
- Defined in:
- lib/ansible/ruby/modules/generated/extras/commands/expect.rb
Overview
The M(expect) module executes a command and responds to prompts The given command will be executed on all selected nodes. It will not be processed through the shell, so variables like C($HOME) and operations like C(“<”), C(“>”), C(“|”), and C(“&”) will not work
Instance Method Summary collapse
-
#chdir ⇒ Object?
Cd into this directory before running the command.
-
#command ⇒ String
The command module takes command to run.
-
#creates ⇒ Object?
A filename, when it already exists, this step will B(not) be run.
-
#echo ⇒ Boolean?
Whether or not to echo out your response strings.
-
#removes ⇒ Object?
A filename, when it does not exist, this step will B(not) be run.
-
#responses ⇒ Hash
Mapping of expected string/regex and string to respond with.
-
#timeout ⇒ Integer?
Amount of time in seconds to wait for the expected strings.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#chdir ⇒ Object?
Returns cd into this directory before running the command.
22 |
# File 'lib/ansible/ruby/modules/generated/extras/commands/expect.rb', line 22 attribute :chdir |
#command ⇒ String
Returns the command module takes command to run.
12 |
# File 'lib/ansible/ruby/modules/generated/extras/commands/expect.rb', line 12 attribute :command |
#creates ⇒ Object?
Returns a filename, when it already exists, this step will B(not) be run.
16 |
# File 'lib/ansible/ruby/modules/generated/extras/commands/expect.rb', line 16 attribute :creates |
#echo ⇒ Boolean?
Returns Whether or not to echo out your response strings.
33 |
# File 'lib/ansible/ruby/modules/generated/extras/commands/expect.rb', line 33 attribute :echo |
#removes ⇒ Object?
Returns a filename, when it does not exist, this step will B(not) be run.
19 |
# File 'lib/ansible/ruby/modules/generated/extras/commands/expect.rb', line 19 attribute :removes |
#responses ⇒ Hash
Returns Mapping of expected string/regex and string to respond with. If the response is a list, successive matches return successive responses. List functionality is new in 2.1.
25 |
# File 'lib/ansible/ruby/modules/generated/extras/commands/expect.rb', line 25 attribute :responses |
#timeout ⇒ Integer?
Returns Amount of time in seconds to wait for the expected strings.
29 |
# File 'lib/ansible/ruby/modules/generated/extras/commands/expect.rb', line 29 attribute :timeout |