Class: SystemdServiceCheck::Utils::Server
- Inherits:
-
Struct
- Object
- Struct
- SystemdServiceCheck::Utils::Server
- Defined in:
- lib/systemd_service_check/utils.rb
Instance Attribute Summary collapse
-
#env ⇒ Object
Returns the value of attribute env.
-
#hostname ⇒ Object
Returns the value of attribute hostname.
-
#ip ⇒ Object
Returns the value of attribute ip.
-
#options ⇒ Object
Returns the value of attribute options.
-
#role ⇒ Object
Returns the value of attribute role.
-
#services ⇒ Object
Returns the value of attribute services.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#conn_info ⇒ Array<String, String, Hash>
For Net::SSH.start(*conn_info).
Instance Attribute Details
#env ⇒ Object
Returns the value of attribute env
10 11 12 |
# File 'lib/systemd_service_check/utils.rb', line 10 def env @env end |
#hostname ⇒ Object
Returns the value of attribute hostname
10 11 12 |
# File 'lib/systemd_service_check/utils.rb', line 10 def hostname @hostname end |
#ip ⇒ Object
Returns the value of attribute ip
10 11 12 |
# File 'lib/systemd_service_check/utils.rb', line 10 def ip @ip end |
#options ⇒ Object
Returns the value of attribute options
10 11 12 |
# File 'lib/systemd_service_check/utils.rb', line 10 def @options end |
#role ⇒ Object
Returns the value of attribute role
10 11 12 |
# File 'lib/systemd_service_check/utils.rb', line 10 def role @role end |
#services ⇒ Object
Returns the value of attribute services
10 11 12 |
# File 'lib/systemd_service_check/utils.rb', line 10 def services @services end |
#user ⇒ Object
Returns the value of attribute user
10 11 12 |
# File 'lib/systemd_service_check/utils.rb', line 10 def user @user end |
Instance Method Details
#conn_info ⇒ Array<String, String, Hash>
Returns for Net::SSH.start(*conn_info).
14 15 16 |
# File 'lib/systemd_service_check/utils.rb', line 14 def conn_info [ip, user, ] end |