Template for g_messages
Synopsis:
Each method of process calls all data from JSON as it goes.
Versus batching style calls previously.
Designed to match inputs against files with option of writing your own db adaptor.
If matches are found ...
- It uses your specific template or the default template
- It grabs a list of placeholders
- It attempts to locate each placeholder's value & compute a time based greeting
- It will substitute each value into the template, checking none are blank
Installation
- Run
git clone https://github.com/mirv/Mirv/g_module
to get library - Ruby install if needed https://www.ruby-lang.org/en/documentation/installation/
- Run
gem install bundler
to get supporting gems - Run
bundle install
to install support gems
Usage
- From the 'lib' directory run
ruby master.rb -h
to list options
Usage: master [options]
--f, --first_name FIRST_NAME
--l, --last_name LAST_NAME
--c, --company_name COMPANY_NAME
--t, --template_name TEMPLATE_NAME
--d, --directory_name DATA_DIRECTORY
Notes & explainations