public
Description: A web hook that takes GitHub commits and turns them into Unfuddle changesets posting using the Unfuddle API.
Homepage:
Clone URL: git://github.com/mbleigh/github-unfuddle.git
github-unfuddle / changeset_spoofer.rb
100644 11 lines (7 sloc) 0.243 kb
1
2
3
4
5
6
7
8
9
10
11
require 'net/http'
require 'yaml'
 
puts YAML.load_file("config.yml").inspect
 
puts "Enter data to be sent to the bridge:"
input = gets.chomp!
 
res = Net::HTTP.post_form(URI.parse('http://localhost:4567/'), {"payload" => input})
 
puts(res.body)