Method: Padrino::Generators::Project#git_author_name

Defined in:
padrino-gen/lib/padrino-gen/generators/project.rb

#git_author_nameObject

Returns the git author name config or a fill-in value.



151
152
153
154
# File 'padrino-gen/lib/padrino-gen/generators/project.rb', line 151

def git_author_name
  git_author_name = `git config user.name`.chomp rescue ''
  git_author_name.empty? ? "TODO: Write your name" : git_author_name
end