Class: Kennel::Engine
- Inherits:
-
Object
- Object
- Kennel::Engine
- Defined in:
- lib/kennel.rb
Instance Attribute Summary collapse
-
#strict_imports ⇒ Object
Returns the value of attribute strict_imports.
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize ⇒ Engine
constructor
A new instance of Engine.
- #plan ⇒ Object
-
#preload ⇒ Object
start generation and download in parallel to make planning faster.
- #update ⇒ Object
Constructor Details
#initialize ⇒ Engine
Returns a new instance of Engine.
59 60 61 |
# File 'lib/kennel.rb', line 59 def initialize @strict_imports = true end |
Instance Attribute Details
#strict_imports ⇒ Object
Returns the value of attribute strict_imports.
57 58 59 |
# File 'lib/kennel.rb', line 57 def strict_imports @strict_imports end |
Instance Method Details
#generate ⇒ Object
68 69 70 71 72 |
# File 'lib/kennel.rb', line 68 def generate parts = generated PartsSerializer.new(filter: filter).write(parts) if ENV["STORE"] != "false" # quicker when debugging parts end |
#plan ⇒ Object
74 75 76 77 |
# File 'lib/kennel.rb', line 74 def plan syncer.print_plan syncer.plan end |
#preload ⇒ Object
start generation and download in parallel to make planning faster
64 65 66 |
# File 'lib/kennel.rb', line 64 def preload Utils.parallel([:generated, :definitions]) { |m| send m, plain: true } end |
#update ⇒ Object
79 80 81 82 |
# File 'lib/kennel.rb', line 79 def update syncer.print_plan syncer.update if syncer.confirm end |