Sha256: c0ecd811fee5b0b2924de7ea9308ff30dad213c44f42f58744bd42755722913b

Contents?: true

Size: 537 Bytes

Versions: 18

Compression:

Stored size: 537 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

18 entries across 18 versions & 2 rubygems

Version Path
mygithug-0.5.1 levels/status.rb
githug-0.5.0 levels/status.rb
githug-0.4.8 levels/status.rb
githug-0.4.7 levels/status.rb
githug-0.4.6 levels/status.rb
githug-0.4.5 levels/status.rb
githug-0.4.4 levels/status.rb
githug-0.4.3 levels/status.rb
githug-0.4.2 levels/status.rb
githug-0.4.1 levels/status.rb
githug-0.4.0 levels/status.rb
githug-0.3.5 levels/status.rb
githug-0.3.4 levels/status.rb
githug-0.3.3 levels/status.rb
githug-0.3.2 levels/status.rb
githug-0.3.1 levels/status.rb
githug-0.3.0 levels/status.rb
githug-0.2.12 levels/status.rb