Sha256: af6a5e952e8ee7b3d649fd2ee54c988f25181bdabd63b3934d5246eeb21f975b

Contents?: true

Size: 301 Bytes

Versions: 2

Compression:

Stored size: 301 Bytes

Contents

# frozen_string_literal: true

module Milestoner
  module Aids
    # Augments an object with Git support.
    module Git
      def git_supported?
        File.exist? File.join(Dir.pwd, ".git")
      end

      def git_remote?
        !`git config remote.origin.url`.empty?
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
milestoner-2.1.0 lib/milestoner/aids/git.rb
milestoner-2.0.0 lib/milestoner/aids/git.rb