# GitHubInfo

Class retrieving GitHub informations from the folder where .git is initialised.

## Constructor

#### new GitHubInfo()

Source:
  - GitHubInfo.js, line 5

### Members

#### options

Getter for the options

Source:
  - GitHubInfo.js, line 11

#### repo

Getter for the repo

Source:
  - GitHubInfo.js, line 32

#### token

Getter for the token

Source:
  - GitHubInfo.js, line 23

### Methods

#### (private) _executeCommand(command, callback) → {Promise}

Execute a command in the bash and run a callback

Since:
  - 0.5.0
Source:
  - GitHubInfo.js, line 47

##### Parameters:

Name | Type | Description
--- | --- | ---
`command` | `string` | The command to execute
`callback` | `function` | The callback which returns the stdout

##### Returns:

Type:
  `Promise`

#### _repo(callback) → {Promise}

Get repo informations

Since:
  - 0.5.0
Source:
  - GitHubInfo.js, line 73

##### Parameters:

Name | Type | Description
--- | --- | ---
`callback` | `function` |

##### Returns:

Type:
  `Promise`

The promise that resolves repo informations ({user: user, name: name})

#### _token(callback) → {Promise}

Get token informations

Since:
  - 0.5.0
Source:
  - GitHubInfo.js, line 98

##### Parameters:

Name | Type | Description
--- | --- | ---
`callback` | `function` |

##### Returns:

Type:
  `Promise`

The promise that resolves token informations ({token: token})