Sha256: aa75403b421059452b5d4f4d05554f6f61c8bf7f1d97e83eda4ddbcf8ab162e8

Contents?: true

Size: 401 Bytes

Versions: 1

Compression:

Stored size: 401 Bytes

Contents

require 'colorize'

def current_branch
  system "git rev-parse --abbrev-ref HEAD"
end

def delete_remote_branch(branch_name)
  system("git push --delete origin #{branch_name}")
end

def show(message, type = :success)
  color =
      case type
      when :success
        :green
      when :warning
        :red
      else
        raise 'Unknown prompt type'
      end

  puts message.send(color)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
legit-0.0.1 lib/legit_helper.rb