lab 21 More Structure
- Add another file to our repository
Now add a Rakefile 01
This lab assumes you have installed rake. Please do that before continuing. Check for your specific Operating System. Otherwise execute:
gem install rake
Let’s add a Rakefile to our repository. The following one will do nicely.
#!/usr/bin/ruby -wKU task :default => :run task :run do require './lib/hello' end
Add and commit the change.
git add Rakefile git commit -m "Added a Rakefile."
You should be able to use Rake to run your hello program now.
$ rake Hello, World!