Class: Capistrano::DataPlaneApi::Configuration::Server

Inherits:
Type
  • Object
show all
Defined in:
lib/capistrano/data_plane_api/configuration/server.rb

Instance Method Summary collapse

Methods inherited from Type

#[], #[]=

Methods included from Equatable

#eql?

Methods included from Diggable

#dig

Instance Method Details

#nameString?

Returns:

  • (String, nil)


16
17
18
# File 'lib/capistrano/data_plane_api/configuration/server.rb', line 16

def name
  @name || @stage
end

#stageString?

Returns:

  • (String, nil)


11
12
13
# File 'lib/capistrano/data_plane_api/configuration/server.rb', line 11

def stage
  @stage || @name
end