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

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

Overview

Contains the configuration options of a server

Instance Method Summary collapse

Methods inherited from Type

#[], #[]=, #to_h

Methods included from Equatable

#eql?

Methods included from Diggable

#dig

Instance Method Details

#nameObject

: -> String?



18
19
20
# File 'lib/capistrano/data_plane_api/configuration/server.rb', line 18

def name
  @name || @stage
end

#stageObject

: -> String?



13
14
15
# File 'lib/capistrano/data_plane_api/configuration/server.rb', line 13

def stage
  @stage || @name
end