app/models/ext_management_system.rb
# Takes a hash of connection data
# hostname, port, and authentication
# if no role is passed in assume is default role
Takes a hash of connection data
hostname, port, and authentication
if no role is passed in assume is default role
Takes a hash of connection data hostname port and authentication if no role is passed in assume is default role
def add_connection_configuration_by_role(options)
    unless options[:endpoint].key?(:role)
      options[:endpoint][:role] ||= "default"
    end
    if options[:authentication].blank?
      options.delete(:authentication)
    else
      unless options[:authentication].key?(:role)
        options[:authentication][:role] ||= "default"
      end
    end
    build_connection(options)
  end
def add_connection_configuration_by_role ( options ) unless options [ :endpoint ] . key? ( :role ) options [ :endpoint ] [ :role ] ||= "default" end if options [ :authentication ] . blank? options . delete ( :authentication ) else unless options [ :authentication ] . key? ( :role ) options [ :authentication ] [ :role ] ||= "default" end end build_connection ( options ) end
Takes a hash of connection data
hostname, port, and authentication
if no role is passed in assume is default role
Takes a hash of connection data hostname port and authentication if no role is passed in assume is default role
options
<not_specific>