public function before() { // Slicehost::method($data = array(), $api_key); $this->b = Slicehost::backup(NULL, $this->api_key); $this->f = Slicehost::flavor(NULL, $this->api_key); $this->i = Slicehost::image(NULL, $this->api_key); $this->r = Slicehost::record(NULL, $this->api_key); $this->s = Slicehost::slice(NULL, $this->api_key); $this->z = Slicehost::zone(NULL, $this->api_key); parent::before(); }
public function before() { parent::before(); if (!Kohana::config('github')->login) { $msg = 'Please add your login credentials to the configuration file.<br/>'; $msg .= 'Look here for your login credentials: ' . html::anchor('https://github.com/account'); die($msg); } // github info can be passed by reference or set in config // Github::instance($format, $user, $token) $this->g = Github::instance(); }