Class: SDM::Relay

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Overview

Relay represents a StrongDM CLI installation running in relay mode.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject

Unique identifier of the Relay.



3549
3550
3551
# File 'lib/models/porcelain.rb', line 3549

def id
  @id
end

#nameObject

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

#stateObject

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