Sha256: 00ce28ba7f0b8f363f87be699007108bd3231d8423429900953b2d72976f6669

Contents?: true

Size: 658 Bytes

Versions: 26

Compression:

Stored size: 658 Bytes

Contents

difficulty 1
description "Set up your git name and email, this is important so that your commits can be identified"

setup do
  repo.init
end

solution do

  valid = false
 
  name = request("What is your name?")  
  email = request("What is your email?")
  config_name = repo.config["user.name"]
  config_email = repo.config["user.email"]
  if name == config_name && email == config_email
    valid = true
  end

  puts "Your config has the following name: #{config_name}"
  puts "Your config has the following email: #{config_email}"

  valid
end

hint do
  puts "These settings are config settings.  You should run `git help config` if you are stuck"
end

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
githug-0.2.11 levels/config.rb
githug-0.2.10 levels/config.rb
githug-0.2.9 levels/config.rb
githug-0.2.8 levels/config.rb
githug-0.2.7 levels/config.rb
githug-0.2.6 levels/config.rb
githug-0.2.5 levels/config.rb
githug-0.2.4 levels/config.rb
githug-0.2.3 levels/config.rb
githug-0.2.2 levels/config.rb
githug-0.2.1 levels/config.rb
githug-0.2.0 levels/config.rb
githug-0.1.8 levels/config.rb
githug-0.1.7 levels/config.rb
githug-0.1.6 levels/config.rb
githug-0.1.5 levels/config.rb
githug-0.1.4 levels/config.rb
githug-0.1.3 levels/config.rb
githug-0.1.2 levels/config.rb
githug-0.1.1 levels/config.rb