Sha256: 93a63d8ed39a574dfacb47ff7e9ff827cafccc21fc2a34103bf8826cb1bcb905

Contents?: true

Size: 613 Bytes

Versions: 2

Compression:

Stored size: 613 Bytes

Contents

module RightDevelop
  module Git
    # A Git command failed unexpectedly.
    class CommandError < StandardError
      attr_reader :output

      def initialize(message)
        @output = message
        lines = message.split("\n").map { |l| l.strip }.reject { |l| l.empty? }
        super(lines.last || @output)
      end
    end

    # A Git command's output did not match with expected output.
    class FormatError < StandardError; end
  end

  require "right_develop/git/branch"
  require "right_develop/git/branch_collection"
  require "right_develop/git/commit"
  require "right_develop/git/repository"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
right_develop-1.2.2 lib/right_develop/git.rb
right_develop-1.2.0 lib/right_develop/git.rb