Class: Capistrano::Configuration::Connections::WinRMConnectionFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/capistrano_winrm/configuration/connections.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ WinRMConnectionFactory

Returns a new instance of WinRMConnectionFactory.



5
6
7
# File 'lib/capistrano_winrm/configuration/connections.rb', line 5

def initialize(options)
  @options = options
end

Instance Method Details

#connect_to(server) ⇒ Object



9
10
11
# File 'lib/capistrano_winrm/configuration/connections.rb', line 9

def connect_to(server)
  WINRM.new(server, @options)
end