Class: Capistrano::DataPlaneApi::Configuration

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

Overview

Configuration object of the ‘capistrano-data_plane_api` gem.

Defined Under Namespace

Classes: Backend, Server, Symbol

Class Method Summary collapse

Methods inherited from Type

#[], #[]=

Methods included from Equatable

#eql?

Methods included from Diggable

#dig

Class Method Details

.from_file(path) ⇒ self

Parameters:

  • path (String)

Returns:

  • (self)


27
28
29
# File 'lib/capistrano/data_plane_api/configuration.rb', line 27

def from_file(path)
  from_yaml ::ERB.new(::File.read(path)).result
end