Sha256: 249c6283a81a88532e6b70a7f08cef2e2004e8b7b59112f3e7a07b4ec2404390

Contents?: true

Size: 520 Bytes

Versions: 2

Compression:

Stored size: 520 Bytes

Contents

module OptparsePlus
  module ExecutionStrategy
    # <b>OptparsePlus Internal - treat as private</b>
    #
    # Implementation for modern Rubies that uses the built-in Open3 library
    class Open_3 < MRI
      def run_command(command)
        stdout,stderr,status = case command
                               when String then Open3.capture3(command)
                               else Open3.capture3(*command)
                               end
        [stdout.chomp,stderr.chomp,status]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
optparse-plus-3.0.1 lib/optparse_plus/execution_strategy/open_3.rb
optparse-plus-3.0.0 lib/optparse_plus/execution_strategy/open_3.rb