parent
98e696c71a
commit
458a64d046
@ -0,0 +1,12 @@ |
|||||||
|
#!/usr/local/bin/ruby |
||||||
|
config = File.new("db.rb", "w") |
||||||
|
config.print("require mysql\n") |
||||||
|
print "hostname: " |
||||||
|
hostname = gets |
||||||
|
print "username: " |
||||||
|
username = gets |
||||||
|
print "password: " |
||||||
|
password = gets |
||||||
|
print "dbname: " |
||||||
|
dbname = gets |
||||||
|
config.print("my = Mysql.connect('" + hostname.strip + "', '" + username.strip + "', '" + password.strip + "', '" + dbname.strip + "')\n") |
Loading…
Reference in new issue