As long as the workflow model has a method or attribute staged_dir
defined, which should return the path to the staged directory, you just add the relative path to this location. Using ContainerFillSim as an example, I could do this:
Pathname.new(@container.staged_dir).join("movies/filling.gif")
Or I could add this method to Container
:
# @return [Pathname] file path to the
def results_file_path(relpath)
Pathname.new(@container.staged_dir).join(relpath)
end
# then you can do
@container.results_file_path("movies/filling.gif")