module GitMagic

Constants

VERSION

Public Class Methods

commit_progress(sha) click to toggle source
# File lib/git_magic.rb, line 6
def self.commit_progress(sha)
  raise "need to pass a valid commit sha" unless valid_sha?(sha)
  puts "This would tell where commit #{sha} is in a given moment"
end

Private Class Methods

valid_sha?(sha) click to toggle source
# File lib/git_magic.rb, line 13
def self.valid_sha?(sha)
  return if sha.empty?
  sha =~ SHA_PATTERN
end