Class: Moonshot::Resources

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#ilogObject (readonly)

Returns the value of attribute ilog.



5
6
7
# File 'lib/moonshot/resources.rb', line 5

def ilog
  @ilog
end

#logObject (readonly)

Returns the value of attribute log.



5
6
7
# File 'lib/moonshot/resources.rb', line 5

def log
  @log
end

#stackObject (readonly)

Returns the value of attribute stack.



5
6
7
# File 'lib/moonshot/resources.rb', line 5

def stack
  @stack
end