From 735eecc3450949afa785a75b094acbe862a281fe Mon Sep 17 00:00:00 2001 From: Brett Langdon Date: Tue, 26 Mar 2013 08:57:26 -0400 Subject: [PATCH] refactored api into submodule --- lib/{AlertApi.js => api/alert.js} | 0 lib/{DashApi.js => api/dash.js} | 0 lib/{EventApi.js => api/event.js} | 0 .../infrastructure.js} | 0 lib/{MetricApi.js => api/metric.js} | 0 lib/{BaseClient.js => http_client.js} | 0 lib/index.js | 32 +++++++++---------- 7 files changed, 16 insertions(+), 16 deletions(-) rename lib/{AlertApi.js => api/alert.js} (100%) rename lib/{DashApi.js => api/dash.js} (100%) rename lib/{EventApi.js => api/event.js} (100%) rename lib/{InfrastructureApi.js => api/infrastructure.js} (100%) rename lib/{MetricApi.js => api/metric.js} (100%) rename lib/{BaseClient.js => http_client.js} (100%) diff --git a/lib/AlertApi.js b/lib/api/alert.js similarity index 100% rename from lib/AlertApi.js rename to lib/api/alert.js diff --git a/lib/DashApi.js b/lib/api/dash.js similarity index 100% rename from lib/DashApi.js rename to lib/api/dash.js diff --git a/lib/EventApi.js b/lib/api/event.js similarity index 100% rename from lib/EventApi.js rename to lib/api/event.js diff --git a/lib/InfrastructureApi.js b/lib/api/infrastructure.js similarity index 100% rename from lib/InfrastructureApi.js rename to lib/api/infrastructure.js diff --git a/lib/MetricApi.js b/lib/api/metric.js similarity index 100% rename from lib/MetricApi.js rename to lib/api/metric.js diff --git a/lib/BaseClient.js b/lib/http_client.js similarity index 100% rename from lib/BaseClient.js rename to lib/http_client.js diff --git a/lib/index.js b/lib/index.js index bce8821..2d0d6cb 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,22 +1,22 @@ var extend = require('extend'); -var BaseClient = require('./BaseClient.js'); -var AlertApi = require('./AlertApi.js'); -var DashApi = require('./DashApi.js'); -var EventApi = require('./EventApi.js'); -var InfrastructureApi = require('./InfrastructureApi.js'); -var MetricApi = require('./MetricApi.js'); +var http_client = require('./http_client.js'); +var alert_api = require('./api/alert.js'); +var dash_api = require('./api/dash.js'); +var event_api = require('./api/event.js'); +var infrastructure_api = require('./api/infrastructure.js'); +var metric_api = require('./api/metric.js'); -var DogHttpApi = function(options){ - BaseClient.call(this, options); +var dogapi = function(options){ + http_client.call(this, options); }; -extend(DogHttpApi.prototype, - BaseClient.prototype, - AlertApi.prototype, - DashApi.prototype, - EventApi.prototype, - InfrastructureApi.prototype, - MetricApi.prototype); +extend(dogapi.prototype, + http_client.prototype, + alert_api.prototype, + dash_api.prototype, + event_api.prototype, + infrastructure_api.prototype, + metric_api.prototype); -return module.exports = DogHttpApi; +return module.exports = dogapi;