/**
* Import from Yaml file.
*
* @param string $file
* @param string $override
* @param bool $force if set to true items not included in import will be deleted
*
* @return Result
*/
public function importFromYaml($file, $override = null, $force = false)
{
Craft::app()->config->maxPowerCaptain();
$yaml = IOHelper::getFileContents($file);
$yaml_override = IOHelper::getFileContents($override);
$dataModel = Data::fromYaml($yaml, $yaml_override);
return $this->importDataModel($dataModel, $force);
}