Skip to content
Snippets Groups Projects
Select Git revision
  • 0f18be8809c0ffa4080bd001f41a469b51a44d43
  • master default protected
  • 7771-harden-postgres-backup
  • pgsql-dump-with-snapshots
  • update-colors
  • update-docs-css
  • usb-repair-stick
  • desktop-notification
  • 7000-corrections
  • db-detector
10 results

updateusb.sh

Blame
  • vcs.interface.php 1.57 KiB
    <?php
    /**
     * BRAINSTORMING ONLY
     * 
     * interface for a version control system
     * @author hahn
     */
    interface iVcs {
    
        // ----------------------------------------------------------------------
        // get metadata 
        // ----------------------------------------------------------------------
    
        /**
         * return url to vcs sources
         */
        public function getUrl();
        
        /**
         * return url to view sources in webrowser to generate an infolink
         */
        public function getWebGuiUrl();
        
        /**
         * return the build type, i.e. git|svn|cvs|
         */
        public function getBuildType();
        
        // ----------------------------------------------------------------------
        // actions
        // ----------------------------------------------------------------------
        /**
         * cleanup unneeded files and directories in a checked out directory
         * and remove all vcs specific files and directories
         * @return bool
         */
        public function cleanupWorkdir($sWorkDir);
        
        /**
         * get current revision and commit message from remote repository
         * @param boolean  $bRefresh  optional: refresh data; default: use cache
         * @return array
         */
        public function getRepoRevision($bRefresh=false);
        
        /**
         * get current revision and log message from given directory
         * @return array
         */
        public function getRevision($sWorkDir);
        
        /**
         * get sources from vsc and check them out in given directory
         * @return bool
         */
        public function getSources($sWorkDir);
        
    
    }