Skip to content

Commit

Permalink
GitHub #6 - Rename command for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
sqmk committed Oct 25, 2015
1 parent 8b8513d commit ee62b2f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let client = new huejay.Client(credentials.host, credentials.username);

console.log(`Checking for software update (${credentials.host})...`);

client.checkForSoftwareUpdate()
client.checkForSoftwareUpdates()
.then(() => {
console.log('Retrieving software update details...');

Expand Down
8 changes: 4 additions & 4 deletions lib/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ class Client {
}

/**
* Check for software update
* Check for software updates
*
* @return {Promise} Promise for chaining
*/
checkForSoftwareUpdate() {
let CheckForSoftwareUpdate = require('./Command/CheckForSoftwareUpdate');
checkForSoftwareUpdates() {
let CheckForSoftwareUpdates = require('./Command/CheckForSoftwareUpdates');

return this.invokeCommand(new CheckForSoftwareUpdate);
return this.invokeCommand(new CheckForSoftwareUpdates);
}

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
'use strict';

/**
* Check for software update command
* Check for software updates command
*
* Updates bridge to check for software update
*/
class CheckForSoftwareUpdate {
class CheckForSoftwareUpdates {
/**
* Invoke command
*
Expand All @@ -30,4 +30,4 @@ class CheckForSoftwareUpdate {
}
}

module.exports = CheckForSoftwareUpdate;
module.exports = CheckForSoftwareUpdates;

0 comments on commit ee62b2f

Please sign in to comment.