Sha256: f7cc177f86580f1dfa887957ab9cb9225f5a211d1b3d3fec410e21826442690e
Contents?: true
Size: 441 Bytes
Versions: 6
Compression:
Stored size: 441 Bytes
Contents
# frozen_string_literal: true module Gemsmith # A thin wrapper to Git. # rubocop:disable Style/StaticClass class Git def self.config_value key `git config #{key}`.chomp end def self.github_user config_value "github.user" end def self.github_url project return "" if github_user.empty? "https://github.com/#{github_user}/#{project}" end end # rubocop:enable Style/StaticClass end
Version data entries
6 entries across 6 versions & 1 rubygems