class RRImm::Pipe

Attributes

command[R]

Public Class Methods

new(command) click to toggle source
Calls superclass method
# File lib/rrimm/publisher/pipe.rb, line 8
def initialize(command)
  super()
  @command = command
end

Public Instance Methods

publish(input, *args) click to toggle source
# File lib/rrimm/publisher/pipe.rb, line 15
def publish(input, *args)
  cmd = Mixlib::ShellOut.new(command, input: input)
  cmd.run_command
  info cmd.stderr if cmd.error?
  cmd.error!
end