Class: NodeSpec::CommunicationAdapters::NativeCommunicator
- Inherits:
-
Object
- Object
- NodeSpec::CommunicationAdapters::NativeCommunicator
- Includes:
- VerboseOutput
- Defined in:
- lib/nodespec/communication_adapters/native_communicator.rb
Instance Method Summary collapse
Methods included from VerboseOutput
Instance Method Details
#backend ⇒ Object
20 21 22 |
# File 'lib/nodespec/communication_adapters/native_communicator.rb', line 20 def backend OS.windows? ? :cmd : :exec end |
#backend_proxy ⇒ Object
16 17 18 |
# File 'lib/nodespec/communication_adapters/native_communicator.rb', line 16 def backend_proxy BackendProxy.create(backend) end |
#init_session(configuration) ⇒ Object
10 11 12 13 14 |
# File 'lib/nodespec/communication_adapters/native_communicator.rb', line 10 def init_session(configuration) configuration.unbind_ssh_session configuration.unbind_winrm_session verbose_puts "\nRunning on local host..." end |