Exception: OpenShift::FrontendHttpServerNameException

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, server_name = nil) ⇒ FrontendHttpServerNameException

Returns a new instance of FrontendHttpServerNameException.



48
49
50
51
# File 'lib/openshift-origin-node/model/frontend_httpd.rb', line 48

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

Instance Attribute Details

#server_nameObject (readonly)

Returns the value of attribute server_name.



46
47
48
# File 'lib/openshift-origin-node/model/frontend_httpd.rb', line 46

def server_name
  @server_name
end

Instance Method Details

#to_sObject



53
54
55
56
57
# File 'lib/openshift-origin-node/model/frontend_httpd.rb', line 53

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