Class: SDM::Relay
- Inherits:
-
Object
- Object
- SDM::Relay
- Defined in:
- lib/models/porcelain.rb
Overview
Relay represents a StrongDM CLI installation running in relay mode.
Instance Attribute Summary collapse
-
#id ⇒ Object
Unique identifier of the Relay.
-
#name ⇒ Object
Unique human-readable name of the Relay.
-
#state ⇒ Object
The current state of the relay.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, state: nil) ⇒ Relay
constructor
A new instance of Relay.
Constructor Details
#initialize(id: nil, name: nil, state: nil) ⇒ Relay
Returns a new instance of Relay.
3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 |
# File 'lib/models/porcelain.rb', line 3555 def initialize( id:nil \ , name:nil \ , state:nil \ ) if id != nil @id = id end if name != nil @name = name end if state != nil @state = state end end |
Instance Attribute Details
#id ⇒ Object
Unique identifier of the Relay.
3549 3550 3551 |
# File 'lib/models/porcelain.rb', line 3549 def id @id end |
#name ⇒ Object
Unique human-readable name of the Relay. Generated if not provided on create.
3551 3552 3553 |
# File 'lib/models/porcelain.rb', line 3551 def name @name end |
#state ⇒ Object
The current state of the relay. One of: “new”, “verifying_restart”, “restarting”, “started”, “stopped”, “dead”, “unknown”,
3554 3555 3556 |
# File 'lib/models/porcelain.rb', line 3554 def state @state end |