Method: SchemaDev::Gem#get_fullname_and_email

Defined in:
lib/schema_dev/gem.rb

#get_fullname_and_emailObject



74
75
76
77
78
79
80
# File 'lib/schema_dev/gem.rb', line 74

def get_fullname_and_email
  {'fullname' => 'name', 'email' => 'email' }.each do |myattr, gitattr|
    if (self.send myattr+"=", `git config user.#{gitattr}`.strip).blank?
      die "Who are you?  Please run 'git config --global user.#{gitattr} <your-#{gitattr}>'"
    end
  end
end