diff --git a/examples/check-for-software-update.js b/examples/check-for-software-updates.js similarity index 94% rename from examples/check-for-software-update.js rename to examples/check-for-software-updates.js index 13123f8..bb12c7e 100755 --- a/examples/check-for-software-update.js +++ b/examples/check-for-software-updates.js @@ -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...'); diff --git a/lib/Client.js b/lib/Client.js index 91dd879..ff0de18 100644 --- a/lib/Client.js +++ b/lib/Client.js @@ -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); } /** diff --git a/lib/Command/CheckForSoftwareUpdate.js b/lib/Command/CheckForSoftwareUpdates.js similarity index 81% rename from lib/Command/CheckForSoftwareUpdate.js rename to lib/Command/CheckForSoftwareUpdates.js index 61dd5d0..96b88e9 100644 --- a/lib/Command/CheckForSoftwareUpdate.js +++ b/lib/Command/CheckForSoftwareUpdates.js @@ -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 * @@ -30,4 +30,4 @@ class CheckForSoftwareUpdate { } } -module.exports = CheckForSoftwareUpdate; +module.exports = CheckForSoftwareUpdates;