Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 129ce9332e
Fetching contributors…

Cannot retrieve contributors at this time

executable file 35 lines (26 sloc) 0.656 kB
#!/usr/bin/env ruby
require 'rubygems'
require 'gitfeed'
unless ARGV.size >= 1
warn <<END
Usage: gitfeed [options] /path/to/git/repository
Options:
--title="RSS Feed Title"
--url=http://base.url.com/
--description="RSS Feed Descrption"
--template=/path/to/haml/template/for/entries
--include-diffs=false
END
exit! 1
end
options = {}
until ARGV.size <= 1 do
kv = ARGV.shift.split('=')
key = kv.first.sub(/^--/, '').gsub('-', '_').to_sym
value = kv.last
value = false if value == 'false'
value = true if value == 'true'
options[key] = value
end
repository = ARGV.shift
Gitfeed::Server.start(repository, options)
Jump to Line
Something went wrong with that request. Please try again.