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
- #update ⇒ Object
Constructor Details
#initialize ⇒ Engine
Returns a new instance of Engine.
55 56 57 |
# File 'lib/kennel.rb', line 55 def initialize @strict_imports = true end |
Instance Attribute Details
#strict_imports ⇒ Object
Returns the value of attribute strict_imports.
59 60 61 |
# File 'lib/kennel.rb', line 59 def strict_imports @strict_imports end |
Instance Method Details
#generate ⇒ Object
61 62 63 64 65 |
# File 'lib/kennel.rb', line 61 def generate parts = generated parts_serializer.write(parts) if ENV["STORE"] != "false" # quicker when debugging parts end |
#plan ⇒ Object
67 68 69 |
# File 'lib/kennel.rb', line 67 def plan syncer.plan end |
#update ⇒ Object
71 72 73 74 |
# File 'lib/kennel.rb', line 71 def update syncer.plan syncer.update if syncer.confirm end |