Skip to content

Commit

Permalink
fix(rules): add Digital Ocean
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 4, 2023
1 parent 9ca03d1 commit 0de015b
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rules/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ exports[`all > should match everything 1`] = `
"circleci",
"cirrusci",
"clickhouse",
"cloudflare",
"cockroachdb",
"codesandboxci",
"contenful",
Expand All @@ -47,6 +48,7 @@ exports[`all > should match everything 1`] = `
"deferrun",
"deno",
"dependabot",
"digitalocean",
"discord",
"docker",
"dropbox",
Expand Down
13 changes: 13 additions & 0 deletions src/rules/hosting/digitalocean.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { register } from '../../register.js';

register({
tech: 'digitalocean',
name: 'DigitalOcean',
type: 'hosting',
dependencies: [
{
type: 'terraform',
name: 'registry.terraform.io/digitalocean/digitalocean',
},
],
});
2 changes: 2 additions & 0 deletions src/rules/hosting/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import './aws.ec2.js';
import './aws.js';
import './aws.lambda.js';
import './azure.js';
import './cloudflare.js';
import './digitalocean.js';
import './elasticstack.js';
import './equinix.js';
import './expodev.js';
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ exports[`npm > should match everything 1`] = `
"bootstrap",
"browserstack",
"clickhouse",
"cloudflare",
"couchbase",
"cypressci",
"datadog",
Expand Down Expand Up @@ -203,6 +204,11 @@ exports[`npm > should match everything 2`] = `
"@clickhouse/client",
"0.0.0",
],
[
"npm",
"@cloudflare/kv-asset-handler",
"0.0.0",
],
[
"npm",
"@datadog/cli",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/ruby/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ exports[`ruby (component) > should match everything 1`] = `
"aws.sns",
"aws.sqs",
"azure",
"cloudflare",
"couchbase",
"datadog",
"elasticsearch",
Expand Down Expand Up @@ -170,6 +171,11 @@ exports[`ruby (component) > should match everything 2`] = `
"circleci",
"1.0.0",
],
[
"ruby",
"cloudflare-rails",
"1.0.0",
],
[
"ruby",
"couchbase",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/rust/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ exports[`rust (component) > should match everything 1`] = `
"aws.sns",
"aws.sqs",
"azure",
"cloudflare",
"couchbase",
"datadog",
"elasticsearch",
Expand Down Expand Up @@ -126,6 +127,11 @@ exports[`rust (component) > should match everything 2`] = `
"cassandra-cpp",
"1.0.0",
],
[
"rust",
"cloudflare",
"1.0.0",
],
[
"rust",
"couchbase",
Expand Down
2 changes: 2 additions & 0 deletions src/rules/spec/terraform/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ exports[`terraform (lockfile) > should match everything 1`] = `
"aws",
"azure",
"clickhouse",
"cloudflare",
"cockroachdb",
"couchbase",
"datadog",
"digitalocean",
"elasticsearch",
"elasticstack",
"equinix",
Expand Down

0 comments on commit 0de015b

Please sign in to comment.