Ruby Project Skeleton Generator on Gist!
Exercise 46 of Learn Ruby the Hard Way gives instructions for manually creating a project skeleton. So I decided to do what I have done many times before in BASH and Python, and
automate this task with a pretty Ruby script.
A few thoughts:
A few thoughts:
- Ruby's handling of files and folders is delightfully straightforward.
- Ruby handles strings elegantly.
- This was originally written as a straight script, but then I refactored it with object-oriented programming in mind:
- One Class (Project)
- The main components of the class broken down into methods.
- Names of folders and files are stored in an array and a hash.
- Blocks of text are stored using Squiggly HEREDOC
Published on 26 Dec 2016
by Alexander Garber
all tags
100daysofcode activerecord android annoyances api apt arch array artix atom az3w backend bash blog browser bug callback career ci-cd cli cloud code coding config configuration cp crud cryptography css csv database db design devops django docker email erp feelsgood filter fugitive gif gist git gnome gnome pomodoro grep hebrew http ide isbn-fetcher iso javascript job search js kanban kindle koans learning linkedin linux logger manjaro map markdown microservices mobi mtp neovim nodejs nvchad packages panda pastbin patch portfolio post postgres pytest python rails reduce refactoring reflections rest routes rspec ruby salesforce script scripting security sed shell sql string_replacement study tdd terminal testing tmux ttd version_control vim vim sort walkthrough webdev workflow zsh