Class: Ansible::Ruby::Modules::Expect

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/extras/commands/expect.rb

Instance Method Summary collapse

Methods inherited from Base

#to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_options, attribute, #initialize, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#chdirObject?

Returns cd into this directory before running the command.

Returns:

  • (Object, nil)

    cd into this directory before running the command



20
# File 'lib/ansible/ruby/modules/generated/extras/commands/expect.rb', line 20

attribute :chdir

#commandString

Returns the command module takes command to run.

Returns:

  • (String)

    the command module takes command to run.



10
# File 'lib/ansible/ruby/modules/generated/extras/commands/expect.rb', line 10

attribute :command

#createsObject?

Returns a filename, when it already exists, this step will B(not) be run.

Returns:

  • (Object, nil)

    a filename, when it already exists, this step will B(not) be run.



14
# File 'lib/ansible/ruby/modules/generated/extras/commands/expect.rb', line 14

attribute :creates

#echoBoolean?

Returns Whether or not to echo out your response strings.

Returns:

  • (Boolean, nil)

    Whether or not to echo out your response strings



31
# File 'lib/ansible/ruby/modules/generated/extras/commands/expect.rb', line 31

attribute :echo

#removesObject?

Returns a filename, when it does not exist, this step will B(not) be run.

Returns:

  • (Object, nil)

    a filename, when it does not exist, this step will B(not) be run.



17
# File 'lib/ansible/ruby/modules/generated/extras/commands/expect.rb', line 17

attribute :removes

#responsesHash

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.

Returns:

  • (Hash)

    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.



23
# File 'lib/ansible/ruby/modules/generated/extras/commands/expect.rb', line 23

attribute :responses

#timeoutInteger?

Returns Amount of time in seconds to wait for the expected strings.

Returns:

  • (Integer, nil)

    Amount of time in seconds to wait for the expected strings



27
# File 'lib/ansible/ruby/modules/generated/extras/commands/expect.rb', line 27

attribute :timeout