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
-
#ilog ⇒ Object
readonly
Returns the value of attribute ilog.
-
#log ⇒ Object
readonly
Returns the value of attribute log.
-
#stack ⇒ Object
readonly
Returns the value of attribute stack.
Instance Method Summary collapse
-
#initialize(log:, stack:, ilog:) ⇒ Resources
constructor
A new instance of Resources.
Constructor Details
#initialize(log:, stack:, ilog:) ⇒ Resources
Returns a new instance of Resources.
7 8 9 10 11 |
# File 'lib/moonshot/resources.rb', line 7 def initialize(log:, stack:, ilog:) @log = log @stack = stack @ilog = ilog end |
Instance Attribute Details
#ilog ⇒ Object (readonly)
Returns the value of attribute ilog.
5 6 7 |
# File 'lib/moonshot/resources.rb', line 5 def ilog @ilog end |
#log ⇒ Object (readonly)
Returns the value of attribute log.
5 6 7 |
# File 'lib/moonshot/resources.rb', line 5 def log @log end |
#stack ⇒ Object (readonly)
Returns the value of attribute stack.
5 6 7 |
# File 'lib/moonshot/resources.rb', line 5 def stack @stack end |