It would be handy if there were a sourcedir method available to recipes, like builddir, etc. Currently, I am using
def after_source_extraction(source_dir)
@source_dir = source_dir
end
to grab the source dir after it has been extracted to use later on. This workaround is fine, but it feels like adding a sourcedir alongside the other methods would be nicer.
I have seen the extracted_source variable, but it seems that this is for telling fpm-cookery where you want the source extracted to, rather than fpm-cookery simply telling me where the source ended up after extraction. I base this on my putsing extracted_source during #install and it being blank.
If I'm wrong and this information is already exposed somewhere, pointers would be appreciated.
Thanks.
It would be handy if there were a
sourcedir
method available to recipes, likebuilddir
, etc. Currently, I am usingto grab the source dir after it has been extracted to use later on. This workaround is fine, but it feels like adding a
sourcedir
alongside the other methods would be nicer.I have seen the
extracted_source
variable, but it seems that this is for tellingfpm-cookery
where you want the source extracted to, rather thanfpm-cookery
simply telling me where the source ended up after extraction. I base this on myputs
ingextracted_source
during#install
and it being blank.If I'm wrong and this information is already exposed somewhere, pointers would be appreciated. Thanks.