procfile Module
module to parse and manage a Procfile
-
class gaffer.procfile.Procfile(procfile, envs=None)[source]
Bases: object
Procfile object to parse a procfile and a list of given
environnment files.
-
as_configparser(concurrency_settings=None)[source]
return a ConfigParser object. It can be used to generate a
gafferd setting file or a configuration file that can be
included.
-
as_dict(name, concurrency_settings=None)[source]
return a procfile line as a JSON object usable with
the command gafferctl load .
-
get_env(envs=[])[source]
build the procfile environment from a list of procfiles
-
get_groupname()[source]
-
parse(procfile)[source]
main function to parse a procfile. It returns a dict
-
parse_cmd(v)[source]
-
processes()[source]
iterator over the configuration