Sha256: 093a9137dba94008102ebf0a0d9188de3265b6227d65c43f4d23ef81658f8b2f

Contents?: true

Size: 289 Bytes

Versions: 3

Compression:

Stored size: 289 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require 'gitmqueue'

path = ARGV.shift
branch = ARGV.shift

producer = GitMQueue::Producer.new(
  storage: GitMQueue::Storage.new(path),
  branch: branch
)

loop do
  producer.publish(gets.strip)
rescue Interrupt
  puts 'Bye.'
  exit
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gitmqueue-0.1.2 bin/gitmqueue-produce
gitmqueue-0.1.1 bin/gitmqueue-produce
gitmqueue-0.1.0 bin/gitmqueue-produce