feat: ✨ port artefact context to other functions
This commit is contained in:
parent
1878186c4f
commit
fe23382dcc
5 changed files with 29 additions and 28 deletions
|
@ -32,14 +32,14 @@ module Comfpile
|
|||
@root_path = options[:root_path]
|
||||
end
|
||||
|
||||
def craft(stage, target)
|
||||
def craft(stage, target, context)
|
||||
return nil unless stage == :sourcefile
|
||||
|
||||
full_path = File.join(@root_path, target)
|
||||
|
||||
return nil unless File.exists? full_path
|
||||
|
||||
FilesourceArtefact.new(@core, self, stage, target,
|
||||
FilesourceArtefact.new(@core, self, stage, target, context,
|
||||
file: full_path);
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue