예제 #1
0
 /**
  * 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);
 }
예제 #2
0
 /**
  * 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);
 }
예제 #3
0
 public function main(array $args = array())
 {
     $this->setService($this->_initService());
     return parent::main($args);
 }