Sha256: 25976108f993465aabcef38c65156efabfa0b937f478fcbf061cd11cc0aef518

Contents?: true

Size: 514 Bytes

Versions: 26

Compression:

Stored size: 514 Bytes

Contents

module Methadone
  module ExecutionStrategy
    # <b>Methadone 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

26 entries across 26 versions & 2 rubygems

Version Path
methadone-2.0.2 lib/methadone/execution_strategy/open_3.rb
methadone-2.0.1 lib/methadone/execution_strategy/open_3.rb
methadone-2.0.0 lib/methadone/execution_strategy/open_3.rb
methadone-1.9.5 lib/methadone/execution_strategy/open_3.rb
methadone-1.9.4 lib/methadone/execution_strategy/open_3.rb
methadone-1.9.3 lib/methadone/execution_strategy/open_3.rb
methadone-1.9.2 lib/methadone/execution_strategy/open_3.rb
methadone-rehab-1.9.2 lib/methadone/execution_strategy/open_3.rb
methadone-1.9.1 lib/methadone/execution_strategy/open_3.rb
methadone-1.9.0 lib/methadone/execution_strategy/open_3.rb
methadone-1.8.0 lib/methadone/execution_strategy/open_3.rb
methadone-1.7.0 lib/methadone/execution_strategy/open_3.rb
methadone-1.6.0 lib/methadone/execution_strategy/open_3.rb
methadone-1.5.1 lib/methadone/execution_strategy/open_3.rb
methadone-1.5.0 lib/methadone/execution_strategy/open_3.rb
methadone-1.4.0 lib/methadone/execution_strategy/open_3.rb
methadone-1.3.2 lib/methadone/execution_strategy/open_3.rb
methadone-1.3.1 lib/methadone/execution_strategy/open_3.rb
methadone-1.3.0 lib/methadone/execution_strategy/open_3.rb
methadone-1.2.6 lib/methadone/execution_strategy/open_3.rb