class OpenShift::Runtime::GearRegistry::Entry

Represents an individual entry in the gear registry

Attributes

dns[R]
namespace[R]
proxy_hostname[R]
proxy_port[R]
uuid[R]

Public Class Methods

new(options) click to toggle source
# File lib/openshift-origin-node/model/gear_registry.rb, line 32
def initialize(options)
  @uuid = options[:uuid]
  @namespace = options[:namespace]
  @dns = options[:dns]
  @proxy_hostname = options[:proxy_hostname]
  @proxy_port = options[:proxy_port]
end

Public Instance Methods

as_json(options={}) click to toggle source
# File lib/openshift-origin-node/model/gear_registry.rb, line 40
def as_json(options={})
  {namespace: @namespace, dns: @dns, proxy_hostname: @proxy_hostname, proxy_port: @proxy_port}
end
to_ssh_url() click to toggle source
# File lib/openshift-origin-node/model/gear_registry.rb, line 44
def to_ssh_url
  "#{@uuid}@#{@proxy_hostname}"
end