Sha256: 3c64f0b8f78bc7e2ac7eb7f9b60240a72de54a19dbea0ef01299e0d036201445
Contents?: true
Size: 1018 Bytes
Versions: 8
Compression:
Stored size: 1018 Bytes
Contents
difficulty 3 description "You added some files to your repository, but now realize that your project needs to be restructured. Make a new folder named `src` and using Git move all of the .html files into this folder." setup do repo.init FileUtils.touch("about.html") FileUtils.touch("contact.html") FileUtils.touch("index.html") repo.add("about.html") repo.add("contact.html") repo.add("index.html") repo.commit_all("adding web content.") end solution do index = repo.status["index.html"].type == "D" && repo.status["index.html"].stage.nil? && repo.status["src/index.html"].type == "A" about = repo.status["about.html"].type == "D" && repo.status["about.html"].stage.nil? && repo.status["src/about.html"].type == "A" contact = repo.status["contact.html"].type == "D" && repo.status["contact.html"].stage.nil? && repo.status["src/contact.html"].type == "A" index && about && contact end hint do puts "You'll have to use mkdir, and `git mv`." end
Version data entries
8 entries across 8 versions & 2 rubygems