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

Version Path
libdolt-0.33.6 lib/libdolt/git/process.rb
libdolt-0.33.5 lib/libdolt/git/process.rb
libdolt-0.33.4 lib/libdolt/git/process.rb
libdolt-0.33.3 lib/libdolt/git/process.rb
libdolt-0.33.2 lib/libdolt/git/process.rb
libdolt-0.33.1 lib/libdolt/git/process.rb
libdolt-0.33.0 lib/libdolt/git/process.rb
libdolt-0.32.0 lib/libdolt/git/process.rb
libdolt-0.31.0 lib/libdolt/git/process.rb
libdolt-0.30.0 lib/libdolt/git/process.rb
libdolt-0.29.0 lib/libdolt/git/process.rb
libdolt-0.28.0 lib/libdolt/git/process.rb
libdolt-0.27.0 lib/libdolt/git/process.rb
libdolt-0.26.0 lib/libdolt/git/process.rb
libdolt-0.25.0 lib/libdolt/git/process.rb
libdolt-0.24.0 lib/libdolt/git/process.rb
libdolt-0.23.0 lib/libdolt/git/process.rb
libdolt-0.22.0 lib/libdolt/git/process.rb
libdolt-0.21.0 lib/libdolt/git/process.rb
libdolt-0.20.0 lib/libdolt/git/process.rb