Method: Puppet::Util::PTomulik::Package::Ports::Execution#execute_command
- Defined in:
- lib/puppet/util/ptomulik/package/ports/execution.rb
#execute_command(command, options = {}) ⇒ Object
Execute command via execpipe
51 52 53 54 55 56 |
# File 'lib/puppet/util/ptomulik/package/ports/execution.rb', line 51 def execute_command(command, = {}) executor = [:execpipe] || method(:execpipe) args = [command] args << [:failonfail] if .include?(:failonfail) executor.call(*args) { |pipe| yield pipe } end |