Sha256: bc6d64c0f53145f7d8d59b4108d9e9bc42084974c0bb37f10613d48d6592fc16

Contents?: true

Size: 376 Bytes

Versions: 1

Compression:

Stored size: 376 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_commits?
        system "git log > /dev/null 2>&1"
      end

      def git_remote?
        system "git config remote.origin.url"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
milestoner-2.2.0 lib/milestoner/aids/git.rb