From 9ea7e72aa51ec8288a13942c5088c70c4407f683 Mon Sep 17 00:00:00 2001 From: Abdelilah Date: Wed, 25 Oct 2023 08:42:41 +0100 Subject: [PATCH] docs(git project): Add move it exercise --- subjects/git/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/subjects/git/README.md b/subjects/git/README.md index f360884b3..10d7d53d9 100644 --- a/subjects/git/README.md +++ b/subjects/git/README.md @@ -88,3 +88,15 @@ puts "Hello, #{name}!" ``` - Oops we forget to the author email, Update the file to include the email. don't make a new commit, but include the change in the last commit. +#### Move it +- Move the program `hello.rb` into a `lib/` directory (use git commnad) and commit the move. +- Add a Rakefile to the root of the repository and commit it. +``` +#!/usr/bin/ruby -wKU + +task :default => :run + +task :run do + require './lib/hello' +end +```