Class: NodeSpec::CommunicationAdapters::NativeCommunicator

Inherits:
Object
  • Object
show all
Includes:
VerboseOutput
Defined in:
lib/nodespec/communication_adapters/native_communicator.rb

Instance Method Summary collapse

Methods included from VerboseOutput

#verbose_puts

Instance Method Details

#backendObject



20
21
22
# File 'lib/nodespec/communication_adapters/native_communicator.rb', line 20

def backend
  OS.windows? ? :cmd : :exec
end

#backend_proxyObject



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