Sha256: 31d8cb608a96240ef7ab214647316c9087fe15b9445a591a32dd462f68b257ad
Contents?: true
Size: 555 Bytes
Versions: 7
Compression:
Stored size: 555 Bytes
Contents
module GitCompound module Worker # Worker that replaces components if necessary # class ComponentReplacer < Worker def initialize(lock) @lock = lock @print = PrettyPrint.new end def visit_component(component) raise "Component `#{component.name}` is not built !" unless component.exists? Logger.inline 'Replacing: ' @print.visit_component(component) component.remove! component.build! @lock.lock_component(component) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems