Sha256: af1244f096a7e46dd1a51f621c7c85f109a973a886e1cf20781da86fe5e870b9

Contents?: true

Size: 289 Bytes

Versions: 8

Compression:

Stored size: 289 Bytes

Contents

class Onceover
  module CodeQuality
    module Executor

      # Capture all program output and check the exit status was zero
      def self.run(*command)
        output, s = Open3.capture2e(*command)
        ok = s.exitstatus.zero?

        return output, ok
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
onceover-codequality-0.12.0 lib/onceover/codequality/executor.rb
onceover-codequality-0.11.0 lib/onceover/codequality/executor.rb
onceover-codequality-0.10.0 lib/onceover/codequality/executor.rb
onceover-codequality-0.9.0 lib/onceover/codequality/executor.rb
onceover-codequality-0.8.0 lib/onceover/codequality/executor.rb
onceover-codequality-0.7.2 lib/onceover/codequality/executor.rb
onceover-codequality-0.7.1 lib/onceover/codequality/executor.rb
onceover-codequality-0.6.0 lib/onceover/codequality/executor.rb