Sha256: 24048537ca6be398dfd2705777dd2153bbbe04297af502ba2a0cb14c7f52d77e

Contents?: true

Size: 483 Bytes

Versions: 5

Compression:

Stored size: 483 Bytes

Contents

require 'mixlib/shellout'

module Ridley::Mixin
  # @author Jamie Winsor <jamie@vialstudios.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

5 entries across 5 versions & 1 rubygems

Version Path
ridley-0.8.3 lib/ridley/mixin/shell_out.rb
ridley-0.8.2 lib/ridley/mixin/shell_out.rb
ridley-0.8.1 lib/ridley/mixin/shell_out.rb
ridley-0.8.0 lib/ridley/mixin/shell_out.rb
ridley-0.7.0 lib/ridley/mixin/shell_out.rb