diff options
author | Patrick Steinhardt <ps@pks.im> | 2020-08-10 11:43:15 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2020-09-14 10:50:15 +0300 |
commit | 4d6dbf072b9016e86967eb3439b9150ea752a15b (patch) | |
tree | 2806cbf8098d12cc7f43359a363dd06cda6abff2 /_support/terraform | |
parent | 159b5e841865c09a50483501535c3225da24c1a4 (diff) |
terraform: Convert terraform wrappers to use shell
Both `destroy-demo-cluster` and `print-info` are simple wrappers around
terraform. Using Ruby for that is overkill.
Let's convert both scripts to shell onliners.
Diffstat (limited to '_support/terraform')
-rwxr-xr-x | _support/terraform/destroy-demo-cluster | 14 | ||||
-rwxr-xr-x | _support/terraform/print-info | 14 |
2 files changed, 4 insertions, 24 deletions
diff --git a/_support/terraform/destroy-demo-cluster b/_support/terraform/destroy-demo-cluster index 88e7f81f7..30d61a6dd 100755 --- a/_support/terraform/destroy-demo-cluster +++ b/_support/terraform/destroy-demo-cluster @@ -1,12 +1,2 @@ -#!/usr/bin/env ruby -# frozen_string_literal: true - -require_relative 'helper.rb' - -def main - return unless terraform_any_machines? - - run!(%w[terraform destroy]) -end - -main +#!/bin/sh +cd terraform && terraform destroy diff --git a/_support/terraform/print-info b/_support/terraform/print-info index 852404725..1f5c6fb71 100755 --- a/_support/terraform/print-info +++ b/_support/terraform/print-info @@ -1,12 +1,2 @@ -#!/usr/bin/env ruby -# frozen_string_literal: true - -require_relative 'helper.rb' - -def main - return unless terraform_any_machines? - - run!(%w[terraform output]) -end - -main +#!/bin/sh +cd terraform && terraform output |