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(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

#controllerObject (readonly)

Returns the value of attribute controller.



7
8
9
# File 'lib/moonshot/resources.rb', line 7

def controller
  @controller
end

#ilogObject (readonly)

Returns the value of attribute ilog.



7
8
9
# File 'lib/moonshot/resources.rb', line 7

def ilog
  @ilog
end

#stackObject (readonly)

Returns the value of attribute stack.



7
8
9
# File 'lib/moonshot/resources.rb', line 7

def stack
  @stack
end