Skip to content

Instantly share code, notes, and snippets.

@hamakn
Created November 28, 2011 18:51
Show Gist options
  • Save hamakn/1401508 to your computer and use it in GitHub Desktop.
Save hamakn/1401508 to your computer and use it in GitHub Desktop.
services/mysql/lib/mysql_service/node.rb
def gen_credential(name, user, passwd)
response = {
"name" => name,
"hostname" => @mysql_config['hostname'],
"host" => @mysql_config['host'],
"port" => @mysql_config['port'],
"user" => user,
"username" => user,
"password" => passwd,
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment