# File lib/openshift-origin-node/model/pub_sub_connector.rb, line 25 def initialize(connection_type, name) @name = name @connection_type = connection_type end
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 41 def action_name name.gsub('-', '_').to_sym end
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 34 def reserved? RESERVED.keys.include?(name) and RESERVED[name] == connection_type end