#!/usr/bin/env ruby # frozen_string_literal: true require 'gitmq' path = ARGV.shift branch = ARGV.shift producer = GitMQ::Producer.new( storage: GitMQ::Storage.new(path), branch: branch ) loop do producer.publish(gets.strip) rescue Interrupt puts 'Bye.' exit end