Module: Tomo::Testing

Defined in:
lib/tomo/testing.rb,
lib/tomo/testing/local.rb,
lib/tomo/testing/cli_tester.rb,
lib/tomo/testing/connection.rb,
lib/tomo/testing/docker_image.rb,
lib/tomo/testing/log_capturing.rb,
lib/tomo/testing/cli_extensions.rb,
lib/tomo/testing/ssh_extensions.rb,
lib/tomo/testing/host_extensions.rb,
lib/tomo/testing/mocked_exec_error.rb,
lib/tomo/testing/mocked_exit_error.rb,
lib/tomo/testing/remote_extensions.rb,
lib/tomo/testing/mock_plugin_tester.rb

Defined Under Namespace

Modules: CLIExtensions, HostExtensions, Local, LogCapturing, RemoteExtensions, SSHExtensions Classes: CLITester, Connection, DockerImage, MockPluginTester, MockedExecError, MockedExitError

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.ssh_enabledObject (readonly)

Returns the value of attribute ssh_enabled.



21
22
23
# File 'lib/tomo/testing.rb', line 21

def ssh_enabled
  @ssh_enabled
end

Class Method Details

.enabling_sshObject



23
24
25
26
27
28
29
# File 'lib/tomo/testing.rb', line 23

def enabling_ssh
  orig_ssh = ssh_enabled
  @ssh_enabled = true
  yield
ensure
  @ssh_enabled = orig_ssh
end