stevenosloan/here_or_there

View on GitHub
lib/here_or_there/local.rb

Summary

Maintainability
A
0 mins
Test Coverage
module HereOrThere
  class Local

    def run command, &block
      stdout, stderr, status = Open3.capture3(command)
      response = Response.new( stdout, stderr, status.success? )

      yield response if block_given?

      return response
    end

  end
end