Skip to content

Commit

Permalink
Fixed display of GIT URL
Browse files Browse the repository at this point in the history
  • Loading branch information
leonbarrett committed Apr 11, 2011
1 parent 3b2e88a commit eeda70a
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions beanstalk
Expand Up @@ -197,6 +197,15 @@ class Beanstalk
} // End of init

// ------------------------------------------------------------------------
/**
* Opens up a URL in the default browser
*
* @access public
* @static
* @return void
* @author Leon Barrett
*/

function open_url($path){

$url = 'https://'.$this->beanstalk_account.'.beanstalkapp.com/'.$path;
Expand All @@ -205,6 +214,15 @@ class Beanstalk

}


/**
* Creates a new release
*
* @access public
* @static
* @return void
* @author Leon Barrett
*/
function create_release($params,$mode){

self::_display_message('', '******************** DEPLOY REPO ********************');
Expand Down Expand Up @@ -298,6 +316,15 @@ class Beanstalk

}


/**
* Checks on the status of a deployment
*
* @access public
* @static
* @return void
* @author Leon Barrett
*/
function check_status($status,$id,$repo){

switch($status){
Expand Down Expand Up @@ -459,7 +486,7 @@ class Beanstalk
if ($type == 'SVN') {
$path ='https://'.$this->beanstalk_username.'@'.$this->beanstalk_account.'.svn.beanstalkapp.com/'.$repo->name.'/';
} else {
$path ='git@'.$this->beanstalk_account.'beanstakapp.com:/'.$repo->name.'.git';
$path ='git@'.$this->beanstalk_account.'.beanstalkapp.com:/'.$repo->name.'.git';
}

self::_display_message('', 'Path: '.$path);
Expand Down Expand Up @@ -504,7 +531,7 @@ class Beanstalk
if ($type == 'SVN') {
$_message .=' https://'.$this->beanstalk_username.'@'.$this->beanstalk_account.'.svn.beanstalkapp.com/'.$repo->name.'/';
} else {
$_message .=' - git@'.$this->beanstalk_account.'beanstakapp.com:/'.$repo->name.'.git';
$_message .=' - git@'.$this->beanstalk_account.'.beanstalkapp.com:/'.$repo->name.'.git';
}
$_message .= "\n";

Expand Down

0 comments on commit eeda70a

Please sign in to comment.