#!/usr/bin/env ruby # frozen_string_literal: true require 'gitmqueue' path = ARGV.shift branch = ARGV.shift consumer = ARGV.shift consumer = GitMQueue::Consumer.new( storage: GitMQueue::Storage.new(path), name: consumer, branch: branch ) begin consumer.consume { |m| puts m } rescue Interrupt puts 'Bye.' end