Class: PipelineToolkit::CLI::MsgSinkCLI

Inherits:
Object
  • Object
show all
Defined in:
lib/pipeline_toolkit/cli/msg_sink_cli.rb

Class Method Summary collapse

Class Method Details

.execute(stdout, arguments = []) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/pipeline_toolkit/cli/msg_sink_cli.rb', line 8

def self.execute(stdout, arguments=[])

  opts = Trollop::options do
    banner "Message Sink\n------------\n  Swallows messages but still acknowledges them (like a /dev/null, but with acks)\n  \n  Usage:\n  msg_sink\n      EOL\n\n    opt :acknowledge, \"If flag is set then messages are acknowledged\", :type => :flag, :short => :a\n    opt :out, \"If flag is set then messages are printed to stdout in plain-text\", :type => :flag, :short => :o\n    opt :env, \"The environment to run (development, production)\", :default => \"development\", :short => :e\n  end\n\n  MessageSink.new(opts).start\nend\n"