Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (10 sloc) 0.319 kB
require 'yaml'
desc "Find and replace git urls"
task :setup do
file_name = "server.rb"
config = YAML.load_file("config.yml")
text = File.read(file_name)
text.gsub!(/##git_post_receive_url##/, config["git_post_receive_url"])
File.open(file_name, "w") {|file| file.write(text) }
end
task :default => [:setup]
Jump to Line
Something went wrong with that request. Please try again.