Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
uoy-faculty-rake / lib / faculty / rake / helpers.rb
Size: Mime:
# frozen_string_literal: true

require 'json'

module Faculty
  module Rake
    # Helper functions for rake tasks
    module Helpers
      def bold(text)
        "\e[1m#{text}\e[22m"
      end

      def repository_name_from_remote(remote)
        remote.delete_suffix('.git').match(%r{[^/]+$})
      end
    end
  end
end