Sha256: 4995c69a0b69ec675244e950fc6385f95770d694a0d680dbc86aa3335e1d03e8
Contents?: true
Size: 364 Bytes
Versions: 3
Compression:
Stored size: 364 Bytes
Contents
require 'cap-util' require 'scmd' module CapUtil class LocalCmdRunner def initialize(cmd_str) @cmd = Scmd.new(cmd_str) end def run!(input = nil) CapUtil.say_bulleted "running `#{@cmd}'" @cmd.run(input) if !@cmd.success? CapUtil.say_error(@cmd.stderr) CapUtil.halt end @cmd end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cap-util-1.5.2 | lib/cap-util/local_cmd_runner.rb |
cap-util-1.5.1 | lib/cap-util/local_cmd_runner.rb |
cap-util-1.5.0 | lib/cap-util/local_cmd_runner.rb |