Sha256: 022e977aca54e72b94d42941bc437694c29cad467de9301e2db3408c2cb2d215
Contents?: true
Size: 556 Bytes
Versions: 4
Compression:
Stored size: 556 Bytes
Contents
module Construi class Target attr_reader :name, :config def initialize(name, config) @name = name @config = config end def commands @config.commands end def run puts "Running #{name}...".green final_image = IntermediateImage.seed(initial_image).reduce(commands) do |image, command| puts puts " > #{command}".green image.run command, @config.options end final_image.delete end def initial_image return Image.from(@config) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
construi-0.39.0 | lib/construi/target.rb |
construi-0.38.0 | lib/construi/target.rb |
construi-0.37.0 | lib/construi/target.rb |
construi-0.36.0 | lib/construi/target.rb |