Skip to content

Instantly share code, notes, and snippets.

@justindossey
Created March 12, 2015 23:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justindossey/ad3b9c9c6283f47e3382 to your computer and use it in GitHub Desktop.
Save justindossey/ad3b9c9c6283f47e3382 to your computer and use it in GitHub Desktop.
erb to yaml
<%=
require 'yaml'
ldap_info = {
'main' => {
'label' => @label,
'host' => @host,
'port' => @port,
'uid' => @uid,
'method' => @method,
'bind_dn' => @bind_dn,
'password' => @password,
'active_directory' => @active_directory,
'base' => @base,
'user_filter' => @user_filter
}
}
YAML.dump(ldap_info)
%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment