Files
analyzer-builder/lib/builder/build_analyzer.rb
2019-04-02 23:47:20 +01:00

20 lines
457 B
Ruby
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

module Builder
class BuildAnalyzer
include Mandate
initialize_with :track_slug, :tag
def call
cmd = %Q{echo "Build analyzer for #{track_slug} for tag##{tag}"}
if Kernel.system(cmd)
PublishMessage.(:analyzer_ready_to_deploy, {
track_slug: track_slug,
image_name: "exercism-analyzer-#{track_slug}:#{tag}"
})
else
# How do we want to handle this error?
end
end
end
end