/** * Set and/or create profile in awscmd. * Also check wether this project actually uses Amazon. * * @param array $args * @return bool */ public function main(array $args = array()) { if (!$this->_usesAmazon()) { Garp_Cli::errorOut('Clearly this environment does not ' . 'use Amazon services. Get outta here!'); return false; } $this->_setProfile(); if (!$this->_profileExists()) { $this->_createProfile(); } return parent::main($args); }
/** * Overwrite to perform sanity checks about wether we can actually execute `git flow`. * * @param array $args * @return bool */ public function main(array $args = array()) { // Sanity check: do you have the right tools for the job? if (!$this->_required_tools_available()) { return false; } // Validate wether the git index is clean if (!$this->_validate_status()) { return false; } return parent::main($args); }
public function main(array $args = array()) { $this->setService($this->_initService()); return parent::main($args); }