Sha256: e092d955d2cb257160ca86878bef4ba80850af091b09699b403f77ded5f2df3c

Contents?: true

Size: 330 Bytes

Versions: 2

Compression:

Stored size: 330 Bytes

Contents

#!/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
)

consumer.consume { |m| puts m }

begin
  sleep
rescue Interrupt
  puts 'Bye.'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gitmqueue-0.1.2 bin/gitmqueue-consume
gitmqueue-0.1.1 bin/gitmqueue-consume