Exception: OpenShift::FrontendHttpServerAliasException

Inherits:
FrontendHttpServerException show all
Defined in:
lib/openshift-origin-node/model/frontend_httpd.rb

Instance Attribute Summary collapse

Attributes inherited from FrontendHttpServerException

#container_name, #container_uuid, #namespace

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil, container_uuid = nil, container_name = nil, namespace = nil, alias_name = nil) ⇒ FrontendHttpServerAliasException

Returns a new instance of FrontendHttpServerAliasException.



64
65
66
67
# File 'lib/openshift-origin-node/model/frontend_httpd.rb', line 64

def initialize(msg=nil, container_uuid=nil, container_name=nil, namespace=nil, alias_name=nil)
  @alias_name = alias_name
  super(msg, container_uuid, container_name, namespace)
end

Instance Attribute Details

#alias_nameObject (readonly)

Returns the value of attribute alias_name.



62
63
64
# File 'lib/openshift-origin-node/model/frontend_httpd.rb', line 62

def alias_name
  @alias_name
end

Instance Method Details

#to_sObject



69
70
71
72
73
# File 'lib/openshift-origin-node/model/frontend_httpd.rb', line 69

def to_s
  m = super
  m+= ": #{@alias_name}" if not @alias_name.nil?
  m
end