PHP Class DataSift\Storyplayer\ProvisioningLib\Provisioners\DsbuildProvisioner

Inheritance: extends Provisioner
Mostra file Open project: datasift/storyplayer

Public Methods

Method Description
__construct ( StoryTeller $st )
buildDefinitionFor ( $env )
provisionHosts ( DataSift\Storyplayer\ProvisioningLib\ProvisioningDefinition $hosts, $provConfig )

Protected Methods

Method Description
flattenData ( mixed $inputData, string $prefix = "" ) : array converts a tree of data into underscore_notation
getDsbuildFilename ( string $baseFolder, DataSift\Stone\ObjectLib\BaseObject $provConfig, string $hostId ) : string | null find the provisioning script to run for a given hostId
writeDsbuildParamsShellFile ( array $vars )
writeDsbuildParamsYamlFile ( array $vars )

Method Details

__construct() public method

public __construct ( StoryTeller $st )
$st DataSift\Storyplayer\PlayerLib\StoryTeller

buildDefinitionFor() public method

public buildDefinitionFor ( $env )

flattenData() protected method

converts a tree of data into underscore_notation
protected flattenData ( mixed $inputData, string $prefix = "" ) : array
$inputData mixed the data to flatten
$prefix string the path to the parent of the inputData
return array the flattened data

getDsbuildFilename() protected method

find the provisioning script to run for a given hostId
protected getDsbuildFilename ( string $baseFolder, DataSift\Stone\ObjectLib\BaseObject $provConfig, string $hostId ) : string | null
$baseFolder string the folder we should look in
$provConfig DataSift\Stone\ObjectLib\BaseObject the "provisioning" section from the test environment config
$hostId string the ID of the host that we are provisioning
return string | null path to the file to execute

provisionHosts() public method

public provisionHosts ( DataSift\Storyplayer\ProvisioningLib\ProvisioningDefinition $hosts, $provConfig )
$hosts DataSift\Storyplayer\ProvisioningLib\ProvisioningDefinition

writeDsbuildParamsShellFile() protected method

protected writeDsbuildParamsShellFile ( array $vars )
$vars array

writeDsbuildParamsYamlFile() protected method

protected writeDsbuildParamsYamlFile ( array $vars )
$vars array