Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2020-08-10 11:43:15 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2020-09-14 10:50:15 +0300
commit4d6dbf072b9016e86967eb3439b9150ea752a15b (patch)
tree2806cbf8098d12cc7f43359a363dd06cda6abff2 /_support/terraform
parent159b5e841865c09a50483501535c3225da24c1a4 (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-cluster14
-rwxr-xr-x_support/terraform/print-info14
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