Sha256: 911a30953993ade61e1e4281f4ef5374ccbaa7ef5f6c17bfe53f7ff0c08486d5

Contents?: true

Size: 376 Bytes

Versions: 6

Compression:

Stored size: 376 Bytes

Contents

require 'cocoapods'

class CommandRunner

  def CommandRunner.run(*args)
    command = args.join ' '
    Pod::UserInterface.info "Running #{command}..."
    stdin, stdout, stderr, wait_thr = Open3.popen3(*args)
    exit_status = wait_thr.value
    if exit_status.success?
      puts stdout.gets
    else
      puts stderr.gets
    end
    return exit_status.success?
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cocoapods-flutter-dt-0.0.8 lib/cocoapods-flutter/native/archive/command_runner.rb
cocoapods-flutter-dt-0.0.7 lib/cocoapods-flutter/native/archive/command_runner.rb
cocoapods-flutter-dt-0.0.6 lib/cocoapods-flutter/native/archive/command_runner.rb
cocoapods-flutter-dt-0.0.4 lib/cocoapods-flutter/native/archive/command_runner.rb
cocoapods-flutter-dt-0.0.3 lib/cocoapods-flutter/native/archive/command_runner.rb
cocoapods-flutter-dt-0.0.2 lib/cocoapods-flutter/native/archive/command_runner.rb