Giter Site home page Giter Site logo

erus's Introduction

ERUS

External Repository Update Status.

For connecting with external repository services such as github or bitbucket in order to obtain update status information for custom work.

INSTALLATION AND CONFIGURATION

By default ERUS will pick up any module that uses the project status url option in the .info file of the module or feature.

project status url = 'http://www.example.com'

ERUS module will attempt to gather information from the update status url in order to check the external service. ERUS comes with a built in github.com plugin. All you would need to add to your features that are stored on github is the path to the github project page. EG: for ERUS

project status url = 'https://github.com/SU-SWS/erus'

You may also add specific configuration settings for each of your modules and features no matter where they are hosted. Add the following to the .info file of the project that is hosted with an external repository service.

erus[plugin] = plugin_name
erus[account] = remote-account-name
erus[project] = *optional_project_name*

eg: for https://github.com/SU-SWS/stanford_person

erus[plugin] = github.com
erus[account] = SU-SWS
erus[project] = stanford_person

Plugins

GitHub
A plugin to connect with GitHub's release functionalty. See plugin documentation for more information.

API

see erus.api.php

/**
* Define your own plugins
* /
hook_erus_plugin_info()


/**
* Alter existing plugin information
*/
hook_erus_plugin_info_alter()

Example Plugin

/**
* Example Erus Plugin
*/
class erusExample extends erusPlugin {

  /**
   * - Optional Method -
   *
   * Creates a configuration form at:
   * admin/config/administration/erus/[-plugin_name-]
   *
   * A default submit handler is provided that saves all the form values
   * into the variables table for you at variable_get('erus_[plugin_name]');
   *
   * @return [array] [config form]
   */
  public function get_configuration_form() {
    $form = array();

    // Your form items here.

    return $form;
  }

  /**
   *  - Required Method -
   *
   * The meat of your plugin goes in here. It is passed in update data for a
   * module that has been validated to use this plugin. Add your logic here.
   *
   * @param  [array] $data Update Data
   * @return [array]
   */
  public function process($data) {

    // Do your stuff here.
    // ...

    // A guzzle client is available to you.
    $client = $this->get_client();

    // Get the configuration form settings

    return $data;
  }


}

Drush

WARNING This module will break your 'drush up' command unless all used plugins provide a valid md5 checksum and the download file unpacks with the exact same name as the module.

If your 'drush up' fails to validate md5 checksums or replaces module directories with invalid names you can use the included package-handler to remedy those ailments.

eg: drush up --package-handler=erus_wget

By providing the --package-handler option you will be able to continue to use drush up.

Also included in this module is a wrapper for the above. Simply use the drush eup command to accomplish the same thing.

eg: drush eup

TODO

  • Development versions
  • Non Drupal naming convention releases
  • Many bug fixes and code clean up.
  • Multiple places for configuration (info & plugin)

erus's People

Contributors

jbickar avatar kmakitan avatar pookmish avatar sherakama avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

bwood

erus's Issues

PHP Notice Error 106

 141  05/May 14:30  php       notice    Notice: Undefined index: op in erus_plugin_configuration_form() (line 75 of /Applications/MAMP/htdocs/20150505/sites/all/modules/stanford/erus/erus.admin.php).                    
 140  05/May 14:30  php       notice    Notice: Undefined index: form_id in erus_plugin_configuration_form() (line 75 of /Applications/MAMP/htdocs/20150505/sites/all/modules/stanford/erus/erus.admin.php).               
 139  05/May 14:30  php       notice    Notice: Undefined index: form_token in erus_plugin_configuration_form() (line 75 of /Applications/MAMP/htdocs/20150505/sites/all/modules/stanford/erus/erus.admin.php).            
 138  05/May 14:30  php       notice    Notice: Undefined index: form_build_id in erus_plugin_configuration_form() (line 75 of /Applications/MAMP/htdocs/20150505/sites/all/modules/stanford/erus/erus.admin.php).         
 137  05/May 14:30  php       notice    Notice: Undefined index: #type in erus_plugin_configuration_form_submit() (line 106 of /Applications/MAMP/htdocs/20150505/sites/all/modules/stanford/erus/erus.admin.php).         
 136  05/May 14:30  php       warning   Warning: Illegal string offset '#type' in erus_plugin_configuration_form_submit() (line 106 of /Applications/MAMP/htdocs/20150505/sites/all/modules/stanford/erus/erus.admin.php). 
 135  05/May 14:30  php       notice    Notice: Undefined index: #type in erus_plugin_configuration_form_submit() (line 106 of /Applications/MAMP/htdocs/20150505/sites/all/modules/stanford/erus/erus.admin.php).         
 134  05/May 14:30  php       notice    Notice: Undefined index: #type in erus_plugin_configuration_form_submit() (line 106 of /Applications/MAMP/htdocs/20150505/sites/all/modules/stanford/erus/erus.admin.php).         
 133  05/May 14:30  php       notice    Notice: Undefined index: #type in erus_plugin_configuration_form_submit() (line 106 of /Applications/MAMP/htdocs/20150505/sites/all/modules/stanford/erus/erus.admin.php).         
 132  05/May 14:30  php       notice    Notice: Undefined index: #type in erus_plugin_configuration_form_submit() (line 106 of /Applications/MAMP/htdocs/20150505/sites/all/modules/stanford/erus/erus.admin.php).         
 131  05/May 14:30  php       notice    Notice: Undefined index: #type in erus_plugin_configuration_form_submit() (line 106 of /Applications/MAMP/htdocs/20150505/sites/all/modules/stanford/erus/erus.admin.php).         
 130  05/May 14:30  php       notice    Notice: Undefined index: #type in erus_plugin_configuration_form_submit() (line 106 of /Applications/MAMP/htdocs/20150505/sites/all/modules/stanford/erus/erus.admin.php).         
 129  05/May 14:30  php       warning   Warning: Illegal string offset '#type' in erus_plugin_configuration_form_submit() (line 106 of /Applications/MAMP/htdocs/20150505/sites/all/modules/stanford/erus/erus.admin.php). 
 128  05/May 14:30  php       warning   Warning: Illegal string offset '#type' in erus_plugin_configuration_form_submit() (line 106 of /Applications/MAMP/htdocs/20150505/sites/all/modules/stanford/erus/erus.admin.php). 
 127  05/May 14:30  php       warning   Warning: Illegal string offset '#type' in erus_plugin_configuration_form_submit() (line 106 of /Applications/MAMP/htdocs/20150505/sites/all/modules/stanford/erus/erus.admin.php). 
 126  05/May 14:30  php       warning   Warning: Illegal string offset '#type' in erus_plugin_configuration_form_submit() (line 106 of /Applications/MAMP/htdocs/20150505/sites/all/modules/stanford/erus/erus.admin.php). 
 125  05/May 14:30  php       warning   Warning: Illegal string offset '#type' in erus_plugin_configuration_form_submit() (line 106 of /Applications/MAMP/htdocs/20150505/sites/all/modules/stanford/erus/erus.admin.php). 
 124  05/May 14:30  php       warning   Warning: Illegal string offset '#type' in erus_plugin_configuration_form_submit() (line 106 of /Applications/MAMP/htdocs/20150505/sites/all/modules/stanford/erus/erus.admin.php). 
 123  05/May 14:30  php       warning   Warning: Illegal string offset '#type' in erus_plugin_configuration_form_submit() (line 106 of /Applications/MAMP/htdocs/20150505/sites/all/modules/stanford/erus/erus.admin.php). 
 122  05/May 14:30  php       notice    Notice: Undefined index: #type in erus_plugin_configuration_form_submit() (line 106 of /Applications/MAMP/htdocs/20150505/sites/all/modules/stanford/erus/erus.admin.php).  

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.