Class: SystemdServiceCheck::Utils::Server

Inherits:
Struct
  • Object
show all
Defined in:
lib/systemd_service_check/utils.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#envObject

Returns the value of attribute env

Returns:

  • (Object)

    the current value of env



10
11
12
# File 'lib/systemd_service_check/utils.rb', line 10

def env
  @env
end

#hostnameObject

Returns the value of attribute hostname

Returns:

  • (Object)

    the current value of hostname



10
11
12
# File 'lib/systemd_service_check/utils.rb', line 10

def hostname
  @hostname
end

#ipObject

Returns the value of attribute ip

Returns:

  • (Object)

    the current value of ip



10
11
12
# File 'lib/systemd_service_check/utils.rb', line 10

def ip
  @ip
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



10
11
12
# File 'lib/systemd_service_check/utils.rb', line 10

def options
  @options
end

#roleObject

Returns the value of attribute role

Returns:

  • (Object)

    the current value of role



10
11
12
# File 'lib/systemd_service_check/utils.rb', line 10

def role
  @role
end

#servicesObject

Returns the value of attribute services

Returns:

  • (Object)

    the current value of services



10
11
12
# File 'lib/systemd_service_check/utils.rb', line 10

def services
  @services
end

#userObject

Returns the value of attribute user

Returns:

  • (Object)

    the current value of user



10
11
12
# File 'lib/systemd_service_check/utils.rb', line 10

def user
  @user
end

Instance Method Details

#conn_infoArray<String, String, Hash>

Returns for Net::SSH.start(*conn_info).

Returns:

  • (Array<String, String, Hash>)

    for Net::SSH.start(*conn_info)

See Also:



14
15
16
# File 'lib/systemd_service_check/utils.rb', line 14

def conn_info
  [ip, user, options]
end