aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlx_prv_overlay.erl
AgeCommit message (Collapse)Author
2019-08-17Keep expected overlay behaviour - make API overlays the lesser authorityGuilherme Andrade
2019-08-15Allow for API callers to define arbitrary overlay variablesGuilherme Andrade
2019-08-12Correctly render redefined variableMikhail Uvarov
Rendering of variables behaves differently for already defined variables. Values of such variables are rendered in the wrong order, ignoring any variables above from the same file.
2019-06-01remove debug io:formatTristan Sloughter
2019-05-20Merge pull request #667 from ElectronicRU/overlay-wildcardsTristan Sloughter
Support wildcards for copy/link to a directory.
2018-10-05support tuples in overlay_vars so rebar3 can pass variables (#672)v3.27.0Tristan Sloughter
2018-07-28I should really have some sleep, and probably not use GitHub Editor.Alex Es
2018-07-28Typo fix.Alex Es
2018-07-28More careful handling of source root.Alex Es
`from' directory should be excluded from the mask to avoid accidental expansion.
2018-07-27Support wildcards for copy/link to a directory.AlexSedov
Additionally, removes a lot of unnecessary conversions to binary in relx_prv_overlay (binary and string in Erlang are two different beasts for filenames), and factors out some common code.
2018-06-23only copy mode and time attributes when copying filesTristan Sloughter
2017-10-18Add `erts_dir` overlay var (#614)Luis Rascão
Useful for copying custom files from an erts build such as a .kerl.config file.
2017-05-08Add the ability to chmod files in the overlay.Anthony Molinaro
Two types are supported, direct chmoding, like {chmod, 8#00700, "path/to/file/maybe/with/{{templates}}" } or templating the permission where you have a template var like {file_perm, 8#00700} and an overlay {chmod, "{{file_perm}}","path/to/file/maybe/with/{{templates}}" }
2016-10-27Fix replace os vars functionalityLuis Rascao
The first run would correctly replace the environment variables, however it would also overwrite the original vm.args and sys.config thus preventing any further substitution in subsequent runs. Dev mode runs were also broken, all runs after the first were required to also define the RELX_REPLACE_OS_VARS variable in order not to overwrite the current vm.args with the original one, this prevented simply attaching to an already running node that was started this way. Add tests to exercise this functionality.
2016-09-25Silence dialyzer warningsLuis Rascao
Fix/add method specs, remove unreachable branches, make rlx_util:render/2 accept both iolists and binaries.
2016-03-15Fixed template args order bugKozlov Yakov
2015-08-24fix error message for template file that doesn't existTristan Sloughter
2015-05-08use mustache instead of erlydtl for overlaysTristan Sloughter
2015-04-23update for 18.0Tristan Sloughter
2015-04-01support symbolic link overlays in dev_modeDavid Best
If dev_mode=true, an overlay action of 'link' will create the target as a symbolic link, otherwise it will be copied. In any case, the target will be copied, not linked, in the .tar file.
2015-02-19support overlay file inclusionLuis Rascao
allow overlay inclusion of other files, similarly to what OTP already does in sys.config files
2015-02-01cleanup: remove unused provider attributes to not complicate codeTristan Sloughter
2014-12-13render overlay filenames for tar archiveTristan Sloughter
2014-11-09move back to using format_error/1Tristan Sloughter
2014-10-23use providers PRV_ERROR and format_error/2Tristan Sloughter
2014-10-22include state in format_error/2Tristan Sloughter
2014-10-11support config passed in as proplist instead of filenameTristan Sloughter
2014-10-11provider task dependenciesTristan Sloughter
2014-05-19Add {out_dir, false} to ERLYDTL_COMPILE_OPTSPaul Schoenfelder
2014-03-05Set auto_escape to false for erlydtl compilationPaul Oliver
2014-02-17Update erlydtl to v0.9.0Andreas Stenius
2013-10-28support using the original app vsn as a string not the parsed vsnEric
2013-10-15ignore empty list of overlay vars to fix unneeded warningTristan Sloughter
2013-10-14remove rlx log and use ec_cmd_log insteadEric
2013-10-12support list of overlay_vars files. This closes #4Tristan Sloughter
2013-10-10fix non-path includes to be include instead of include_libTristan Sloughter
2013-10-07include relx header with include instead of include_libTristan Sloughter
2013-09-16improved user output lookTristan Sloughter
2013-09-13support copying full directories in overlaysTristan Sloughter
2013-06-20Add support for {vm_args,_} argument in configOlav Frengstad
2013-05-10internal rename completion of all relcool to relx callsEric
2013-05-09Basic file rename from rcl to rlxEric