Sha256: 8f148bb9c3d4781735fca454872e2cd51fc52afd08b87ebc446c7725ca497d1e
Contents?: true
Size: 484 Bytes
Versions: 1
Compression:
Stored size: 484 Bytes
Contents
require 'mixlib/shellout' module Berkshelf::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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
berkshelf-1.2.0.rc1 | lib/berkshelf/mixin/shell_out.rb |