Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env ruby
- require 'tinder'
- USERNAME = "a_user"
- PASSWORD = "a_password"
- DOMAIN = "a_domain"
- ROOM = "a_room"
- $stderr.reopen('/dev/null')
- $stderr.reopen('/dev/null')
- cf = Tinder::Campfire.new(DOMAIN, :username => USERNAME, :password => PASSWORD)
- room = cf.rooms.find { |x| x.name == ROOM }
- branch, oldrev, newrev = ARGV
- room.paste <<-EOF
- Commit to repo #{File.basename(File.expand_path(ENV["GIT_DIR"]), '.git')}, branch #{branch}
- #{`git log '#{oldrev}'...'#{newrev}' | git shortlog`}
- EOF
- exit 0
Add Comment
Please, Sign In to add comment