Class: Stackit::ManagedStackService

Inherits:
Object
  • Object
show all
Defined in:
lib/stackit/stack/managed_stack_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ ManagedStackService

Returns a new instance of ManagedStackService.



8
9
10
# File 'lib/stackit/stack/managed_stack_service.rb', line 8

def initialize(options)
  self.options = options
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



5
6
7
# File 'lib/stackit/stack/managed_stack_service.rb', line 5

def options
  @options
end

#stacks=(value) ⇒ Object

Sets the attribute stacks

Parameters:

  • value

    the value to set the attribute stacks to.



6
7
8
# File 'lib/stackit/stack/managed_stack_service.rb', line 6

def stacks=(value)
  @stacks = value
end

Instance Method Details

#create!Object



12
13
14
# File 'lib/stackit/stack/managed_stack_service.rb', line 12

def create!
  stack.create!
end

#delete!Object



20
21
22
# File 'lib/stackit/stack/managed_stack_service.rb', line 20

def delete!
  stack.delete!
end

#update!Object



16
17
18
# File 'lib/stackit/stack/managed_stack_service.rb', line 16

def update!
  stack.update!
end