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-5.0.0 lib/r10k/git/errors.rb
r10k-4.1.0 lib/r10k/git/errors.rb
r10k-4.0.2 lib/r10k/git/errors.rb
r10k-4.0.1 lib/r10k/git/errors.rb
r10k-4.0.0 lib/r10k/git/errors.rb
r10k-4.0.0.pre lib/r10k/git/errors.rb
r10k-3.16.0 lib/r10k/git/errors.rb
r10k-3.15.4 lib/r10k/git/errors.rb
r10k-3.15.3 lib/r10k/git/errors.rb
r10k-3.15.2 lib/r10k/git/errors.rb
r10k-3.15.1 lib/r10k/git/errors.rb
r10k-3.15.0 lib/r10k/git/errors.rb
akerl-r10k-3.14.2.1 lib/r10k/git/errors.rb
r10k-3.14.2 lib/r10k/git/errors.rb
r10k-3.14.1 lib/r10k/git/errors.rb
r10k-3.14.0 lib/r10k/git/errors.rb
r10k-3.13.0 lib/r10k/git/errors.rb
r10k-3.12.1 lib/r10k/git/errors.rb
r10k-3.12.0 lib/r10k/git/errors.rb
r10k-3.11.0 lib/r10k/git/errors.rb