Module: TwistlockControl::Actions::ServiceInstance

Defined in:
lib/twistlock_control/actions/service_instance.rb

Overview

  • Creating service instances

  • Configuring service instances

Class Method Summary collapse

Class Method Details

.add(name, service) ⇒ Object



8
9
10
11
12
13
# File 'lib/twistlock_control/actions/service_instance.rb', line 8

def add(name, service)
	configuration = build_configuration(service)
	instance = Entities::ServiceInstance.new(service_id: service.id, name: name, configuration: configuration)
	instance.save
	instance
end

.removeObject



19
20
21
# File 'lib/twistlock_control/actions/service_instance.rb', line 19

def remove
	fail 'not implemented'
end

.updateObject



15
16
17
# File 'lib/twistlock_control/actions/service_instance.rb', line 15

def update
	fail 'not implemented'
end