class Runbook::Statements::Assert

Attributes

abort_statement[R]
attempts[R]
cmd[R]
cmd_raw[R]
cmd_ssh_config[R]
interval[R]
timeout[R]

Public Class Methods

new( cmd, cmd_ssh_config: nil, cmd_raw: false, interval: 1, timeout: 0, attempts: 0, abort_statement: nil, timeout_statement: nil ) click to toggle source
# File lib/runbook/statements/assert.rb, line 12
def initialize(
  cmd,
  cmd_ssh_config: nil,
  cmd_raw: false,
  interval: 1,
  timeout: 0,
  attempts: 0,
  abort_statement: nil,
  timeout_statement: nil
)
  @cmd = cmd
  @cmd_ssh_config = cmd_ssh_config
  @cmd_raw = cmd_raw
  @interval = interval
  @timeout = timeout
  @attempts = attempts
  if timeout_statement
    Runbook.deprecator.deprecation_warning(:timeout_statement, :abort_statement)
  end
  @abort_statement = abort_statement || timeout_statement
end

Public Instance Methods

timeout_statement() click to toggle source
# File lib/runbook/statements/assert.rb, line 7
def timeout_statement
  Runbook.deprecator.deprecation_warning(:timeout_statement, :abort_statement)
  @abort_statement
end