YUKI Hiroshi
null+****@clear*****
Mon Oct 15 18:11:16 JST 2012
YUKI Hiroshi 2012-10-15 18:11:16 +0900 (Mon, 15 Oct 2012) New Revision: 8b8bb7e583d9020db8df925bc5326e9428bd4cf3 https://github.com/groonga/gcs/commit/8b8bb7e583d9020db8df925bc5326e9428bd4cf3 Log: Rename "cloudSearch" to "configurationAPI" Modified files: bin/gcs-create-domain bin/gcs-delete-domain lib/command-line.js Modified: bin/gcs-create-domain (+1 -1) =================================================================== --- bin/gcs-create-domain 2012-10-15 18:09:14 +0900 (20cc588) +++ bin/gcs-create-domain 2012-10-15 18:11:16 +0900 (468e3ad) @@ -19,7 +19,7 @@ commandLine.getDomainStatus(domainName, function(error, domain) { return process.exit(1); } console.log('Creating domain [' + domainName + ']'); - commandLine.cloudSearch.CreateDomain( + commandLine.configurationAPI.CreateDomain( { DomainName: domainName }, function(error, result) { if (error) Modified: bin/gcs-delete-domain (+1 -1) =================================================================== --- bin/gcs-delete-domain 2012-10-15 18:09:14 +0900 (7423e53) +++ bin/gcs-delete-domain 2012-10-15 18:11:16 +0900 (3cd3bab) @@ -15,7 +15,7 @@ commandLine commandLine.assertHaveDomainName(); commandLine.assertDomainExistsHTTP(function() { function doDelete(successMessage) { - commandLine.cloudSearch.DeleteDomain( + commandLine.configurationAPI.DeleteDomain( { DomainName: commandLine.domainName }, function(error, response) { if (error) Modified: lib/command-line.js (+8 -8) =================================================================== --- lib/command-line.js 2012-10-15 18:09:14 +0900 (ceddd96) +++ lib/command-line.js 2012-10-15 18:11:16 +0900 (7ea38c0) @@ -33,22 +33,22 @@ function CommandLineInterface() { this.reservedOptions = []; } CommandLineInterface.prototype = { - get cloudSearch() { + get configurationAPI() { if (!this._couldSearch) { - this._cloudSearch = new CloudSearch({ + this._configurationAPI = new CloudSearch({ accessKeyId: 'dummy-access-key-id', secretAccessKey: 'dummy-access-key', }); var CLI = this; - this._cloudSearch.host = function() { + this._configurationAPI.host = function() { return CLI.options.baseHost.split(':')[0]; }; - this._cloudSearch.addExtras = function(options, args) { + this._configurationAPI.addExtras = function(options, args) { options.protocol = 'http'; options.port = CLI.options.baseHost.split(':')[1] || CLI.options.port; }; } - return this._cloudSearch; + return this._configurationAPI; }, get domainName() { return this.options.domainName; @@ -167,9 +167,9 @@ CommandLineInterface.prototype = { callback(null, domainStatuses); }; if (arguments.length > 1) - this.cloudSearch.DescribeDomains(options, domainStatusesCallback); + this.configurationAPI.DescribeDomains(options, domainStatusesCallback); else - this.cloudSearch.DescribeDomains(domainStatusesCallback); + this.configurationAPI.DescribeDomains(domainStatusesCallback); } catch(error) { this.raiseFatalError(error); } @@ -177,7 +177,7 @@ CommandLineInterface.prototype = { getIndexFieldStatuses: function(domainName, callback) { var self = this; - this.cloudSearch.DescribeIndexFields( + this.configurationAPI.DescribeIndexFields( { DomainName: domainName }, function(error, response) { if (error) -------------- next part -------------- HTML����������������������������... Download