Sha256: aa3c9b364f3d7f9ed2455bc63fd2aa53562501f82f09d507cd1ae130d27c998d

Contents?: true

Size: 539 Bytes

Versions: 24

Compression:

Stored size: 539 Bytes

Contents

difficulty 1
description "There are some files in this repository, one of the files is untracked, which file is it?"

setup do
  repo.init
  %w{config.rb README setup.rb deploy.rb Guardfile}.each do |file|
    FileUtils.touch(file)
    repo.add(file)
  end
  FileUtils.touch("database.yml")
end

solution do

  name = request("What is the full file name of the untracked file?")  

  if name != "database.yml"
    return false
  end

  true
end

hint do
  puts "You are looking for a command to identify the status of the repository."
end

Version data entries

24 entries across 24 versions & 2 rubygems

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