library/Garp/Cli/Command/Aws.php
protected function _exec($group, $subCmd, $args) {
        $keys = array_keys($args);
        $cmd = "aws $group $subCmd";
        foreach ($keys as $key) {
            $cmd .= is_numeric($key) ? ' ' : " --{$key}";
            $cmd .= true === $args[$key] ? '' : ' ' . $args[$key];
        }

        $cmd .= " --profile {$this->_profile}";
        return passthru($cmd);
    }
protected function _exec($group, $subCmd, $args) {
        $keys = array_keys($args);
        $cmd = "aws $group $subCmd";
        foreach ($keys as $key) {
            $cmd .= is_numeric($key) ? ' ' : " --{$key}";
            $cmd .= true === $args[$key] ? '' : ' ' . $args[$key];
        }

        $cmd .= " --profile {$this->_profile}";
        return passthru($cmd);
    }
protected function _exec ( $ group , $ subCmd , $ args ) { $ keys = array_keys ( $ args ) ; $ cmd = "aws $group $subCmd" ; foreach ( $ keys as $ key ) { $ cmd .= is_numeric ( $ key ) ? ' ' : " --{$key}" ; $ cmd .= true === $ args [ $ key ] ? '' : ' ' . $ args [ $ key ] ; } $ cmd .= " --profile {$this->_profile}" ; return passthru ( $ cmd ) ; }
Execute awscmd function

@param str $group For instance s3, or ec2
@param str $subCmd For instance 'ls' or 'cp'
@param array $args Further commandline arguments
@return bool
Execute awscmd function