Class: Ace::Git::ResolvedServer

Inherits:
Data
  • Object
show all
Defined in:
lib/ace/git/resolved_server.rb

Overview

An exactly-resolved forge server identity.

Produced by ServerRegistry (by explicit name, by default resolution, or by remote URL matching). Carries the configured server name, the provider type that owns its behavior, and the configured base URL.

Examples:

ResolvedServer.new(name: "forge-lab", provider: :acme, url: "https://forge.example.com")

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#name ⇒ Object (readonly)

Returns the value of attribute name

Returns:

  • (Object) —

    the current value of name



13
14
15
# File 'lib/ace/git/resolved_server.rb', line 13

def name
  @name
end

#provider ⇒ Object (readonly)

Returns the value of attribute provider

Returns:

  • (Object) —

    the current value of provider



13
14
15
# File 'lib/ace/git/resolved_server.rb', line 13

def provider
  @provider
end

#url ⇒ Object (readonly)

Returns the value of attribute url

Returns:

  • (Object) —

    the current value of url



13
14
15
# File 'lib/ace/git/resolved_server.rb', line 13

def url
  @url
end

Instance Method Details

#to_h ⇒ Hash

Returns Plain hash representation.

Returns:

  • (Hash) —

    Plain hash representation



15
16
17
# File 'lib/ace/git/resolved_server.rb', line 15

def to_h
  {name: name, provider: provider, url: url}
end