Sha256: 9d3500a49c16d1381e423480c4e0517dec1e33d10dec5812840f91406bd38fee
Contents?: true
Size: 1.2 KB
Versions: 25
Compression:
Stored size: 1.2 KB
Contents
# encoding: utf-8 #-- # Copyright (C) 2013 Gitorious AS # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. #++ module Dolt module Git class Process attr_reader :stdin, :stdout, :stderr def initialize(stdin, stdout, stderr, process_status) @stdin = stdin @stdout = stdout @stderr = stderr @process_status = process_status end def success? @process_status.success? end def exit_code @process_status.exitstatus end def exception Exception.new(stderr.read) end end end end
Version data entries
25 entries across 25 versions & 1 rubygems