src/Robo/Commands/Generate/AliasesCommand.php
protected function writeCloudApiConfig(array $config) {
    if (!is_dir($this->cloudConfDir)) {
      mkdir($this->cloudConfDir);
    }
    file_put_contents($this->cloudConfFilePath, json_encode($config));
    $this->say("Credentials were written to {$this->cloudConfFilePath}.");
  }
protected function writeCloudApiConfig(array $config) {
    if (!is_dir($this->cloudConfDir)) {
      mkdir($this->cloudConfDir);
    }
    file_put_contents($this->cloudConfFilePath, json_encode($config));
    $this->say("Credentials were written to {$this->cloudConfFilePath}.");
  }
protected function writeCloudApiConfig ( array $ config ) { if ( ! is_dir ( $ this -> cloudConfDir ) ) { mkdir ( $ this -> cloudConfDir ) ; } file_put_contents ( $ this -> cloudConfFilePath , json_encode ( $ config ) ) ; $ this -> say ( "Credentials were written to {$this->cloudConfFilePath}." ) ; }
Writes configuration to local file.

@param array $config
An array of CloudAPI configuraton.
Writes configuration to local file .