![]() Thor is a toolkit that makes it easy to build CLI apps. Since my CLI app allows the user to pass in parameters like -category, I ended up using Thor. My initial plan was to use sendmail for sending emails, but I ended up using SMTP to improve deliverability. You guessed it! The mail gem lets you send emails. I used this for parsing HTML data fetched from the remote website and to convert them into domain objects. If you’re dealing with parsing XML/HTML, chances are you’ll run into Nokogiri. My goal was to follow the KISS principle as strictly as possible. I’ve been using Lando for Drupal projects for a while, so I decided to use it here as well. I like Docker because it helps me keep my laptop clean. ![]() To kick it off, I created a Docker based dev env with Lando, using a community-maintained ruby image. $ ruby spcas.rb -verbose -email -interval=5
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |