library/Garp/Cli/Command/S3.php
public function makeBucket(array $args = array()) {
        $bucket = isset($args[0]) ? $args[0] : null;
        if (is_null($bucket)) {
            $config = Zend_Registry::get('config');
            $bucket = isset($config->cdn->s3->bucket) ? $config->cdn->s3->bucket : null;
        }
        if (is_null($bucket)) {
            Garp_Cli::errorOut('No bucket configured');
            return false;
        }
        return $this->s3(
            'mb', array(
            's3://' . $bucket
            )
        );
    }
public function makeBucket(array $args = array()) {
        $bucket = isset($args[0]) ? $args[0] : null;
        if (is_null($bucket)) {
            $config = Zend_Registry::get('config');
            $bucket = isset($config->cdn->s3->bucket) ? $config->cdn->s3->bucket : null;
        }
        if (is_null($bucket)) {
            Garp_Cli::errorOut('No bucket configured');
            return false;
        }
        return $this->s3(
            'mb', array(
            's3://' . $bucket
            )
        );
    }
public function makeBucket ( array $ args = array ( ) ) { $ bucket = isset ( $ args [ 0 ] ) ? $ args [ 0 ] : null ; if ( is_null ( $ bucket ) ) { $ config = Zend_Registry :: get ( 'config' ) ; $ bucket = isset ( $ config -> cdn -> s3 -> bucket ) ? $ config -> cdn -> s3 -> bucket : null ; } if ( is_null ( $ bucket ) ) { Garp_Cli :: errorOut ( 'No bucket configured' ) ; return false ; } return $ this -> s3 ( 'mb' , array ( 's3://' . $ bucket ) ) ; }
Create a new bucket on S3.
This defaults to the configured bucket.

@param array $args
@return bool
Create a new bucket on S3 . This defaults to the configured bucket .