Skip to content

Commit

Permalink
fix(artifacts): method-syntax functions cant be used as constructors (s…
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Bloch-Wehba-Seaward authored and amanya committed Jul 25, 2018
1 parent e11c727 commit 07e401e
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module(BASE64_ARTIFACT, [PIPELINE_CONFIG_PROVIDER]).config((pipelineConfigProvid
key: 'base64',
isDefault: false,
isMatch: true,
controller(artifact: IArtifact) {
controller: function(artifact: IArtifact) {
'ngInject';
this.artifact = artifact;
this.artifact.type = 'embedded/base64';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module(DEFAULT_BASE64_ARTIFACT, [PIPELINE_CONFIG_PROVIDER]).config((pipelineConf
key: 'default.base64',
isDefault: true,
isMatch: false,
controller(artifact: IArtifact) {
controller: function(artifact: IArtifact) {
'ngInject';
this.artifact = artifact;
this.artifact.type = 'embedded/base64';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module(CUSTOM_ARTIFACT, [PIPELINE_CONFIG_PROVIDER])
key: 'custom',
isDefault: true,
isMatch: true,
controller(artifact: IArtifact) {
controller: function(artifact: IArtifact) {
'ngInject';
this.artifact = artifact;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module(DEFAULT_DOCKER_ARTIFACT, [PIPELINE_CONFIG_PROVIDER]).config((pipelineConf
isMatch: false,
description: 'A Docker image to be deployed.',
key: 'default.docker',
controller(artifact: IArtifact) {
controller: function(artifact: IArtifact) {
'ngInject';
this.artifact = artifact;
this.artifact.type = 'docker/image';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module(DOCKER_ARTIFACT, [PIPELINE_CONFIG_PROVIDER]).config((pipelineConfigProvid
isMatch: true,
description: 'A Docker image to be deployed.',
key: 'docker',
controller(artifact: IArtifact) {
controller: function(artifact: IArtifact) {
'ngInject';
this.artifact = artifact;
this.artifact.type = 'docker/image';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module(DEFAULT_GCS_ARTIFACT, [PIPELINE_CONFIG_PROVIDER]).config((pipelineConfigP
key: 'default.gcs',
isDefault: true,
isMatch: false,
controller(artifact: IArtifact) {
controller: function(artifact: IArtifact) {
'ngInject';
this.artifact = artifact;
this.artifact.type = 'gcs/object';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module(GCS_ARTIFACT, [PIPELINE_CONFIG_PROVIDER]).config((pipelineConfigProvider:
key: 'gcs',
isDefault: false,
isMatch: true,
controller(artifact: IArtifact) {
controller: function(artifact: IArtifact) {
'ngInject';
this.artifact = artifact;
this.artifact.type = 'gcs/object';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module(DEFAULT_GITHUB_ARTIFACT, [PIPELINE_CONFIG_PROVIDER]).config((pipelineConf
key: 'default.github',
isDefault: true,
isMatch: false,
controller(artifact: IArtifact) {
controller: function(artifact: IArtifact) {
'ngInject';
this.artifact = artifact;
this.artifact.type = 'github/file';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module(GITHUB_ARTIFACT, [PIPELINE_CONFIG_PROVIDER]).config((pipelineConfigProvid
key: 'github',
isDefault: false,
isMatch: true,
controller(artifact: IArtifact) {
controller: function(artifact: IArtifact) {
'ngInject';
this.artifact = artifact;
this.artifact.type = 'github/file';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module(DEFAULT_S3_ARTIFACT, [PIPELINE_CONFIG_PROVIDER]).config((pipelineConfigPr
key: 'default.s3',
isDefault: true,
isMatch: false,
controller(artifact: IArtifact) {
controller: function(artifact: IArtifact) {
'ngInject';
this.artifact = artifact;
this.artifact.type = 's3/object';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module(S3_ARTIFACT, [PIPELINE_CONFIG_PROVIDER]).config((pipelineConfigProvider:
key: 's3',
isDefault: false,
isMatch: true,
controller(artifact: IArtifact) {
controller: function(artifact: IArtifact) {
'ngInject';
this.artifact = artifact;
this.artifact.type = 's3/object';
Expand Down
1 change: 1 addition & 0 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"no-var-keyword": true,
"object-curly-spacing": "always",
"object-literal-sort-keys": false,
"object-literal-shorthand": false,
"one-line": [true, "check-catch", "check-else", "check-open-brace", "check-whitespace"],
"prefer-const": [true, { "destructuring": "all" }],
"quotemark": [true, "single", "avoid-escape", "jsx-double"],
Expand Down

0 comments on commit 07e401e

Please sign in to comment.