Class: Producer::Core::Tests::ShellCommandStatus

Inherits:
Producer::Core::Test show all
Extended by:
Forwardable
Defined in:
lib/producer/core/tests/shell_command_status.rb

Instance Attribute Summary

Attributes inherited from Producer::Core::Test

#arguments, #env

Instance Method Summary collapse

Methods inherited from Producer::Core::Test

#initialize, #negated?, #pass?

Constructor Details

This class inherits a constructor from Producer::Core::Test

Instance Method Details

#verifyObject



8
9
10
11
12
13
# File 'lib/producer/core/tests/shell_command_status.rb', line 8

def verify
  remote.execute command
  true
rescue RemoteCommandExecutionError
  false
end