Sha256: ab9ea4afb948f6caaa2c785a035c4c78ff82733987677d3260e465fa79d561a1
Contents?: true
Size: 481 Bytes
Versions: 20
Compression:
Stored size: 481 Bytes
Contents
require 'mixlib/shellout' module Ridley::Mixin # @author Jamie Winsor <reset@riotgames.com> module ShellOut # @return [Mixlib::ShellOut] def shell_out(*command_args) cmd = Mixlib::ShellOut.new(*command_args) if STDOUT.tty? cmd.live_stream = STDOUT end cmd.run_command cmd end # @return [Mixlib::ShellOut] def shell_out!(*command_args) cmd = shell_out(*command_args) cmd.error! cmd end end end
Version data entries
20 entries across 20 versions & 1 rubygems