D7 Features - pierregermain/MyDrupal GitHub Wiki
Info
https://www.deliciouscreative.com/blog/run-drupal-updates-directly-after-enabling-deployment-module
http://befused.com/drupal/site-deployment-module
Example
/**
* Install myfeature
*/
function mymodule_update_7102() {
// Enable Feature
$modules = array(
'myfeature',
);
module_enable($modules);
// Revert Feature
$feature = features_get_features('myfeature');
$components = array_keys($feature->info['features']);
features_revert(array('myfeature' => $components));
}
Apply going to update.php