This repository contains mail templates for vpsAdmin used at vpsFree.cz. After editing, the templates must be installed (sent to the API).
- make
- Ruby >= 2.0
- gems specified in
Gemfile
Every template is in a directory. The directory name must match with the
template name. The directory must contain file meta.rb
and may contain files
plain.erb
for plain text version and html.erb
for HTML version.
It is a standard Ruby file. There is one predefined method template
. It has no
arguments and accepts a block. The block is executed in an environment with
methods (options) label
, from
, reply_to
, return_path
and subject
.
All these methods accept one argument. They are used to describe the template.
Required options are label
, from
, subject
.
For example:
template do
label 'Some Label'
from '[email protected]'
reply_to '[email protected]'
return_path '[email protected]'
subject '[vpsFree.cz] Some Subject'
end
Installation is done by make
. Optional variables:
API
- the URL of the API to upload templates toVERSION
- version of the API to useUSERNAME
PASSWORD
The user name and password is prompted on stdin if it is not set.
For example:
$ make API=https://api.vpsfree.cz USERNAME=admin