UNPKG

harrogateclient

Version:

A simple node.js client for Kipr Harrogate on their Wallaby's.

773 lines (185 loc) • 8.35 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JSDoc: Class: Project</title> <script src="scripts/prettify/prettify.js"> </script> <script src="scripts/prettify/lang-css.js"> </script> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css"> <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css"> </head> <body> <div id="main"> <h1 class="page-title">Class: Project</h1> <section> <header> <h2><span class="attribs"><span class="type-signature"></span></span>Project<span class="signature">(name, user, del, compile, getInformation)</span><span class="type-signature"></span></h2> </header> <article> <div class="container-overview"> <h4 class="name" id="Project"><span class="type-signature"></span>new Project<span class="signature">(name, user, del, compile, getInformation)</span><span class="type-signature"></span></h4> <div class="description"> Creates a Project object. </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>name</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last">name of the project</td> </tr> <tr> <td class="name"><code>user</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last">owner of the project</td> </tr> <tr> <td class="name"><code>del</code></td> <td class="type"> <span class="param-type">function</span> </td> <td class="description last">function to delete the project</td> </tr> <tr> <td class="name"><code>compile</code></td> <td class="type"> <span class="param-type">function</span> </td> <td class="description last">function to compile the project</td> </tr> <tr> <td class="name"><code>getInformation</code></td> <td class="type"> <span class="param-type">function</span> </td> <td class="description last">function to get project information</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line69">line 69</a> </li></ul></dd> </dl> </div> <h3 class="subsection-title">Members</h3> <h4 class="name" id="name"><span class="type-signature"></span>name<span class="type-signature"> :string</span></h4> <div class="description"> name of the project </div> <h5>Type:</h5> <ul> <li> <span class="param-type">string</span> </li> </ul> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line79">line 79</a> </li></ul></dd> </dl> <h4 class="name" id="user"><span class="type-signature"></span>user<span class="type-signature"> :string</span></h4> <div class="description"> owner of the project </div> <h5>Type:</h5> <ul> <li> <span class="param-type">string</span> </li> </ul> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line85">line 85</a> </li></ul></dd> </dl> <h3 class="subsection-title">Methods</h3> <h4 class="name" id="compile"><span class="type-signature"></span>compile<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;{stdout: string, stderr: string}, error>}</span></h4> <div class="description"> Compiles the project. </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line99">line 99</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;{stdout: string, stderr: string}, error></span> </dd> </dl> <h4 class="name" id="delete"><span class="type-signature"></span>delete<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;void, error>}</span></h4> <div class="description"> Deletes the project. </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line92">line 92</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;void, error></span> </dd> </dl> <h4 class="name" id="getInformation"><span class="type-signature"></span>getInformation<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;<a href="ProjectInfo.html">ProjectInfo</a>, error>}</span></h4> <div class="description"> Gets information about the project. </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line106">line 106</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;<a href="ProjectInfo.html">ProjectInfo</a>, error></span> </dd> </dl> </article> </section> </div> <nav> <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="File.html">File</a></li><li><a href="HarrogateClient.html">HarrogateClient</a></li><li><a href="Project.html">Project</a></li><li><a href="ProjectInfo.html">ProjectInfo</a></li><li><a href="User.html">User</a></li></ul> </nav> <br class="clear"> <footer> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Feb 23 2018 14:24:20 GMT+0100 (Mitteleuropäische Zeit) </footer> <script> prettyPrint(); </script> <script src="scripts/linenumber.js"> </script> </body> </html>