public function set($name)
    {
        $exec = $this->getExecutor();
        $exec->setCommand('hostname ' . $name);
        $exec->run();

        return $exec->hasErrors();
    }
public function set($name)
    {
        $exec = $this->getExecutor();
        $exec->setCommand('hostname ' . $name);
        $exec->run();

        return $exec->hasErrors();
    }
public function set ( $ name ) { $ exec = $ this -> getExecutor ( ) ; $ exec -> setCommand ( 'hostname ' . $ name ) ; $ exec -> run ( ) ; return $ exec -> hasErrors ( ) ; }
sets the hostname

@param string $name

@return boolean true on success falsr otherwise
sets the hostname