terraform-generator
Advanced tools
Comparing version 0.1.10 to 0.1.11
export default class Argument { | ||
readonly argument: string; | ||
constructor(argument: string); | ||
readonly args: (string | Argument)[]; | ||
constructor(...args: (string | Argument)[]); | ||
toTerraform(): string; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
class Argument { | ||
constructor(argument) { | ||
this.argument = argument; | ||
constructor(...args) { | ||
this.args = args; | ||
} | ||
toTerraform() { | ||
return this.argument; | ||
let str = ''; | ||
this.args.forEach(arg => { | ||
if (arg instanceof Argument) { | ||
str += arg.toTerraform(); | ||
} | ||
else { | ||
str += arg; | ||
} | ||
}); | ||
return str; | ||
} | ||
} | ||
exports.default = Argument; |
{ | ||
"name": "terraform-generator", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"author": "Ah Zhe", | ||
@@ -5,0 +5,0 @@ "description": "Generate Terraform plan using Node.js.", |
@@ -85,3 +85,7 @@ # **terraform-generator** | ||
resourceAttribute: resource.getAttribute('attributeName'), | ||
custom: new Argument('max(5, 12, 9)') | ||
heredoc: new Heredoc(`line1 | ||
line2 | ||
line3`); | ||
custom1: new Argument('max(5, 12, 9)'), | ||
custom2: new Argument('sort("a", ', resource.getAttribute('attributeName'), ', "c")') | ||
} | ||
@@ -88,0 +92,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22306
461
196