lib/cicd/builder/mixlib/utils.rb in cicd-builder-0.9.23 vs lib/cicd/builder/mixlib/utils.rb in cicd-builder-0.9.25

- old
+ new

@@ -21,7 +21,17 @@ down[k] = v } down end - end + # --------------------------------------------------------------------------------------------------------------- + def addArtifact(artifacts, script, prefix, opts = {}) + key = "#{@vars[:project_name]}/#{@vars[:variant]}/#{@vars[:build_nam]}/#{script.gsub(%r|^#{prefix}|, '')}" + # Store the artifact - be sure to inherit possible overrides in pkg name and ext but dictate the drawer! + artifacts << { + key: key, + data: {:file => script}.merge(opts), + } + end + + end end \ No newline at end of file