class OpenShift::Runtime::PubSubConnector

Constants

RESERVED

Attributes

connection_type[R]
name[R]
to_s[R]

Public Class Methods

new(connection_type, name) click to toggle source
# File lib/openshift-origin-node/model/pub_sub_connector.rb, line 27
def initialize(connection_type, name)
  @name = name
  @connection_type = connection_type
end

Public Instance Methods

action_name() click to toggle source
name of the method invoked by the cartridge

since cartridge manifest specifies with hyphens, substitute them with underscores

# File lib/openshift-origin-node/model/pub_sub_connector.rb, line 43
def action_name
  name.gsub('-', '_').to_sym
end
reserved?() click to toggle source

returns true if and only if this connector's name is reserved by the platform

# File lib/openshift-origin-node/model/pub_sub_connector.rb, line 36
def reserved?
  RESERVED.keys.include?(name) and RESERVED[name] == connection_type
end