Skip to content
This repository has been archived by the owner on Feb 26, 2019. It is now read-only.

Updating SD links #18

Merged
merged 1 commit into from
Oct 24, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Code licensed under the BSD 3-Clause license. See LICENSE file for terms.
[license-image]: https://img.shields.io/npm/l/screwdriver-dynamic-dynamodb.svg
[issues-image]: https://img.shields.io/github/issues/screwdriver-cd/dynamic-dynamodb.svg
[issues-url]: https://github.com/screwdriver-cd/dynamic-dynamodb/issues
[status-image]: https://cd.screwdriver.cd/pipelines/1fe8ccf8670f3592f0515248fc372f1039d080f9/badge
[status-url]: https://cd.screwdriver.cd/pipelines/1fe8ccf8670f3592f0515248fc372f1039d080f9
[status-image]: https://cd.screwdriver.cd/pipelines/63d0c3449474b5627c31865bca2d5de53fbea964/badge
[status-url]: https://cd.screwdriver.cd/pipelines/63d0c3449474b5627c31865bca2d5de53fbea964
[daviddm-image]: https://david-dm.org/screwdriver-cd/dynamic-dynamodb.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/screwdriver-cd/dynamic-dynamodb
5 changes: 3 additions & 2 deletions bin/tables.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env node

'use strict';

const Bobby = require('../');
Expand Down Expand Up @@ -31,14 +32,14 @@ function generateModelList(selectedTables) {
if (selectedTables.length === 0) {
tables = defaultTables;
} else {
tables = defaultTables.filter((tableName) => selectedTables.indexOf(tableName) > -1);
tables = defaultTables.filter(tableName => selectedTables.indexOf(tableName) > -1);
}

winston.info(`Tables: ${tables}`);
winston.info(`Prefix: ${prefix}`);
winston.info(`Region: ${region}`);

return tables.map((tableName) => client.defineTable(tableName, prefix));
return tables.map(tableName => client.defineTable(tableName, prefix));
}

commander.version(pkg.version);
Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
'use strict';

const vogels = require('vogels');
const dataSchema = require('screwdriver-data-schema');

Expand All @@ -25,7 +26,7 @@ class Bobby {
defineTable(modelName, prefix) {
const schema = dataSchema.models[modelName];
const tableName = `${prefix || ''}${schema.tableName}`;
const indexes = schema.indexes.map((key) => ({
const indexes = schema.indexes.map(key => ({
hashKey: key,
name: `${key}Index`,
type: 'global'
Expand Down
1 change: 1 addition & 0 deletions test/index.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
'use strict';

const assert = require('chai').assert;
const mockery = require('mockery');
const sinon = require('sinon');
Expand Down