PHP Class Scalr_Service_Chef_Client

Mostra file Open project: scalr/scalr Class Usage Examples

Public Methods

Method Description
__construct ( $url, $username, $privateKey )
createClient ( $name )
createEnvironment ( $name, $description, $cookbook, $attributes )
createRole ( $name, $description, $runList, $attributes, $environment = [] )
getChef ( $url, $username, $privateKey )
getClient ( $name = '' )
getCookbook ( $name )
getEnvironment ( $name )
getRole ( $name )
listCookbooks ( $env = '' )
listEnvironmentRecipes ( $env = '' )
listEnvironments ( )
listRecipes ( $cookbookName, $cookbookVersion = '_latest' )
listRoles ( )
removeClient ( $name )
removeEnvironment ( $name )
removeNode ( $name )
removeRole ( $name )
sign ( $string )
updateEnvironment ( $name, $description, $cookbook, $attributes )
updateRole ( $name, $description, $runList, $attributes, $environment = [] )

Private Methods

Method Description
request ( $path, $method, $data = "" )

Method Details

__construct() public method

public __construct ( $url, $username, $privateKey )

createClient() public method

public createClient ( $name )

createEnvironment() public method

public createEnvironment ( $name, $description, $cookbook, $attributes )

createRole() public method

public createRole ( $name, $description, $runList, $attributes, $environment = [] )

getChef() public static method

public static getChef ( $url, $username, $privateKey )

getClient() public method

public getClient ( $name = '' )

getCookbook() public method

public getCookbook ( $name )

getEnvironment() public method

public getEnvironment ( $name )

getRole() public method

public getRole ( $name )

listCookbooks() public method

public listCookbooks ( $env = '' )

listEnvironmentRecipes() public method

public listEnvironmentRecipes ( $env = '' )

listEnvironments() public method

public listEnvironments ( )

listRecipes() public method

public listRecipes ( $cookbookName, $cookbookVersion = '_latest' )

listRoles() public method

public listRoles ( )

removeClient() public method

public removeClient ( $name )

removeEnvironment() public method

public removeEnvironment ( $name )

removeNode() public method

public removeNode ( $name )

removeRole() public method

public removeRole ( $name )

sign() public method

public sign ( $string )

updateEnvironment() public method

public updateEnvironment ( $name, $description, $cookbook, $attributes )

updateRole() public method

public updateRole ( $name, $description, $runList, $attributes, $environment = [] )