Class: Moonshot::Resources
- Inherits:
-
Object
- Object
- Moonshot::Resources
- Defined in:
- lib/moonshot/resources.rb
Overview
Resources is a dependency container that holds references to instances provided to a Mechanism (build, deploy, etc.).
Instance Attribute Summary collapse
-
#controller ⇒ Object
readonly
Returns the value of attribute controller.
-
#ilog ⇒ Object
readonly
Returns the value of attribute ilog.
-
#stack ⇒ Object
readonly
Returns the value of attribute stack.
Instance Method Summary collapse
-
#initialize(stack:, ilog:, controller:) ⇒ Resources
constructor
A new instance of Resources.
Constructor Details
#initialize(stack:, ilog:, controller:) ⇒ Resources
Returns a new instance of Resources.
9 10 11 12 13 |
# File 'lib/moonshot/resources.rb', line 9 def initialize(stack:, ilog:, controller:) @stack = stack @ilog = ilog @controller = controller end |
Instance Attribute Details
#controller ⇒ Object (readonly)
Returns the value of attribute controller.
7 8 9 |
# File 'lib/moonshot/resources.rb', line 7 def controller @controller end |
#ilog ⇒ Object (readonly)
Returns the value of attribute ilog.
7 8 9 |
# File 'lib/moonshot/resources.rb', line 7 def ilog @ilog end |
#stack ⇒ Object (readonly)
Returns the value of attribute stack.
7 8 9 |
# File 'lib/moonshot/resources.rb', line 7 def stack @stack end |