Method: Pkg::Util::Git.project_name

Defined in:
lib/packaging/util/git.rb

.project_nameObject

Return the basename of the project repo



123
124
125
126
127
128
# File 'lib/packaging/util/git.rb', line 123

def project_name
  Pkg::Util.in_project_root do
    stdout, = Pkg::Util::Execution.capture3("#{Pkg::Util::Tool::GIT} config --get remote.origin.url")
    stdout.split('/')[-1].chomp('.git').chomp
  end
end