feat: 🔥 oh god
This commit is contained in:
parent
cdb5492bfe
commit
3c7f48016d
30 changed files with 708 additions and 280 deletions
|
@ -8,6 +8,9 @@ module Comfpile
|
|||
class Artefact
|
||||
attr_reader :core, :engine
|
||||
|
||||
# @return [Comfpile::ContextKey] The context key of this artefact
|
||||
attr_reader :context
|
||||
|
||||
attr_reader :exit_state
|
||||
attr_reader :stage, :target
|
||||
|
||||
|
@ -32,6 +35,8 @@ module Comfpile
|
|||
# linking steps, but the objects can be built separately.
|
||||
attr_reader :referenced_artefacts
|
||||
|
||||
attr_reader :build_dir
|
||||
|
||||
# ARTEFACT STATES
|
||||
#
|
||||
# The following states are known to the system:
|
||||
|
@ -55,7 +60,7 @@ module Comfpile
|
|||
|
||||
@stage = stage
|
||||
@target = target
|
||||
@context = @core.sanitize_context context
|
||||
@context = @core.get_context_key context
|
||||
|
||||
@parent_artefact = nil
|
||||
|
||||
|
@ -76,6 +81,8 @@ module Comfpile
|
|||
|
||||
@exit_state = nil
|
||||
@running = false
|
||||
|
||||
@build_dir = opts[:build_dir] || @core.get_context_build_dir_path(self)
|
||||
end
|
||||
|
||||
def [](key)
|
||||
|
@ -109,7 +116,7 @@ module Comfpile
|
|||
@log_current_line = text
|
||||
@log_current_level = level
|
||||
|
||||
puts "> %-30s %s:\n %s" % [@stage, @target, text]
|
||||
print "\033[2K> %-30s %s: %s\r" % [@stage, @target, text]
|
||||
|
||||
nil
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue