Class: TwistlockControl::Entities::ProvisioningConfiguration

Inherits:
TwistlockControl::Entity show all
Defined in:
lib/twistlock_control/entities/provisioning_configuration.rb

Overview

ProvisioningConfiguration holds service instance configuration that pertains to the provisioning of containers.

Class Method Summary collapse

Methods inherited from TwistlockControl::Entity

#==, #serialize

Class Method Details

.new(attrs) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/twistlock_control/entities/provisioning_configuration.rb', line 8

def self.new(attrs)
	if attrs['configurations'] || attrs[:configurations]
		obj = CompositeConfiguration.allocate
	else
		obj = ContainerConfiguration.allocate
	end
	obj.send :initialize, attrs
end