Advertisement
Guest User

Untitled

a guest
Sep 5th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. header "Copying and configuring sample files"
  2.  
  3. if copy_sample "config/database.yml"
  4. gsub_file("config/database.yml", /username:.*\n/, "username: #{ask("\nWhat is your database username? ", :blue)}\n")
  5. gsub_file("config/database.yml", /password:.*\n/, "password: #{ask("\nWhat is your database password? ", :blue)}\n")
  6. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement