Class: Rubysmith::Configuration::Transformers::GitUser

Inherits:
Object
  • Object
show all
Defined in:
lib/rubysmith/configuration/transformers/git_user.rb

Overview

Dynamically adds Git user if defined.

Instance Method Summary collapse

Instance Method Details

#call(attributes) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/rubysmith/configuration/transformers/git_user.rb', line 13

def call attributes
  if attributes[:author_given_name] || attributes[:author_family_name]
    Success attributes
  else
    name_or attributes
  end
end