diff --git a/lib/jekyll/theme_builder.rb b/lib/jekyll/theme_builder.rb index aca89dd6..9b43e0a3 100644 --- a/lib/jekyll/theme_builder.rb +++ b/lib/jekyll/theme_builder.rb @@ -21,6 +21,14 @@ class Jekyll::ThemeBuilder initialize_git_repo end + def user_name + @user_name ||= `git config user.name`.chomp + end + + def user_email + @user_email ||= `git config user.email`.chomp + end + private def root @@ -85,14 +93,6 @@ class Jekyll::ThemeBuilder write_file(".gitignore", template("gitignore")) end - def user_name - @user_name ||= `git config user.name`.chomp - end - - def user_email - @user_email ||= `git config user.email`.chomp - end - class ERBRenderer extend Forwardable