Class: Nexpose::MobilePowershellDiscoveryConnection

Inherits:
DiscoveryConnection show all
Defined in:
lib/nexpose/discovery.rb

Instance Attribute Summary

Attributes inherited from DiscoveryConnection

#address, #engine_id, #exchange_hostname, #exchange_password, #exchange_username, #id, #name, #password, #port, #protocol, #status, #type, #user

Instance Method Summary collapse

Methods inherited from DiscoveryConnection

#==, #as_xml, #connect, #create, #delete, #discover, #eql?, parse, #save, #to_h, #to_json, #to_xml, #update

Methods included from XMLUtils

#make_xml, #parse_xml, success?

Methods inherited from APIObject

#object_from_hash

Constructor Details

#initialize(name, address, user, password, exchange_hostname, exchange_username, exchange_password) ⇒ MobilePowershellDiscoveryConnection

Create a new Mobile Powershell discovery connection.

Parameters:

  • name (String)

    Name to assign to this connection.

  • address (String)

    IP or fully qualified domain name of the WinRM server.

  • user (String)

    WinRM User name for credentials on this connection.

  • password (String)

    WinRM password for credentials on this connection.

  • exchange_hostname (String)

    fully qualified domain name of the exchange server

  • exchange_username (String)

    Exchange User name for exchange credentials on this connection.

  • exchange_password (String)

    Exchange password for exchange credentials on this connection.



339
340
341
342
343
344
345
346
# File 'lib/nexpose/discovery.rb', line 339

def initialize(name, address, user, password, exchange_hostname, exchange_username, exchange_password)
  @name, @address, @user, @password = name, address, user, password
  @protocol = Protocol::HTTPS
  @exchange_hostname, @exchange_username, @exchange_password = exchange_hostname, exchange_username, exchange_password
  @type = Type::ACTIVESYNC_POWERSHELL
  @id = -1
  @port = 443 # port not used for mobile connection
end