Sha256: 0b81064d87e29ba3f5251b8fd9e6165fe43659c6d4cc225e845d6df9f97f2869

Contents?: true

Size: 531 Bytes

Versions: 80

Compression:

Stored size: 531 Bytes

Contents

require 'r10k/errors'

module R10K
  module Git

    class GitError < R10K::Error
      attr_reader :git_dir

      def initialize(mesg, options = {})
        super
        @git_dir = @options[:git_dir]
      end

      def message
        msg = super
        if @git_dir
          msg << " at #{@git_dir}"
        end
        msg
      end
    end


    class UnresolvableRefError < GitError

      attr_reader :ref

      def initialize(mesg, options = {})
        super
        @ref = @options[:ref]
      end
    end
  end
end

Version data entries

80 entries across 80 versions & 2 rubygems

Version Path
r10k-3.10.0 lib/r10k/git/errors.rb
r10k-3.9.3 lib/r10k/git/errors.rb
r10k-3.9.2 lib/r10k/git/errors.rb
r10k-3.9.1 lib/r10k/git/errors.rb
r10k-3.9.0 lib/r10k/git/errors.rb
r10k-3.8.0 lib/r10k/git/errors.rb
r10k-3.7.0 lib/r10k/git/errors.rb
r10k-3.6.0 lib/r10k/git/errors.rb
r10k-2.6.9 lib/r10k/git/errors.rb
r10k-3.5.2 lib/r10k/git/errors.rb
r10k-3.5.1 lib/r10k/git/errors.rb
r10k-3.5.0 lib/r10k/git/errors.rb
r10k-3.4.1 lib/r10k/git/errors.rb
r10k-2.6.8 lib/r10k/git/errors.rb
r10k-3.4.0 lib/r10k/git/errors.rb
r10k-3.3.3 lib/r10k/git/errors.rb
r10k-3.2.3 lib/r10k/git/errors.rb
r10k-2.6.7 lib/r10k/git/errors.rb
r10k-3.3.2 lib/r10k/git/errors.rb
r10k-3.3.1 lib/r10k/git/errors.rb