Sha256: 2f2b38674a60d376529944c425e9bb00d0b534ac782689262a2f16d8e3c2530e

Contents?: true

Size: 496 Bytes

Versions: 13

Compression:

Stored size: 496 Bytes

Contents

require 'cocoapods'

class CommandRunner

  def CommandRunner.run(*args)
    command = args.join ' '
    Pod::UserInterface.info "Running #{command}..."
    stdin, stdout_stderr, wait_thr = Open3.popen2e(*args)
    Thread.new do
      stdout_stderr.each {|l| puts l }
    end

    exit_status = wait_thr.value
    if exit_status.success?
      puts stdout_stderr.gets
    else
      puts stdout_stderr.gets
    end
    stdin.close
    stdout_stderr.close
    return exit_status.success?
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
cocoapods-flutter-dt-0.4.3 lib/cocoapods-flutter/native/archive/command_runner.rb
cocoapods-flutter-dt-0.4.2 lib/cocoapods-flutter/native/archive/command_runner.rb
cocoapods-flutter-dt-0.4.1 lib/cocoapods-flutter/native/archive/command_runner.rb
cocoapods-flutter-dt-0.2.7 lib/cocoapods-flutter/native/archive/command_runner.rb
cocoapods-flutter-dt-0.2.6 lib/cocoapods-flutter/native/archive/command_runner.rb
cocoapods-flutter-dt-0.2.5 lib/cocoapods-flutter/native/archive/command_runner.rb
cocoapods-flutter-dt-0.2.4 lib/cocoapods-flutter/native/archive/command_runner.rb
cocoapods-flutter-dt-0.2.3 lib/cocoapods-flutter/native/archive/command_runner.rb
cocoapods-flutter-dt-0.2.2 lib/cocoapods-flutter/native/archive/command_runner.rb
cocoapods-flutter-dt-0.2.1 lib/cocoapods-flutter/native/archive/command_runner.rb
cocoapods-flutter-dt-0.2.0 lib/cocoapods-flutter/native/archive/command_runner.rb
cocoapods-flutter-dt-0.1.0 lib/cocoapods-flutter/native/archive/command_runner.rb
cocoapods-flutter-dt-0.0.9 lib/cocoapods-flutter/native/archive/command_runner.rb