belt 0.3.21 → 0.3.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/belt/cli/dns_command.rb +7 -7
- data/lib/belt/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1a3951e549645f3fca57660c1e883dee7ae4077e20b77b9b404b1dfa6e9539ab
|
|
4
|
+
data.tar.gz: cf18d81cdd06c595ac152d7a85b76f8818dedfb6791b902aef09a7bfe8c1cbbb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8d42fe40574244f042988650b83f6ec28e7bd37013674b4f5ca8fd95d33c90bdb6ed6fc8ad6828caa5c5531bb35f3c0064764222bef0ebbf6ddcd009597bef24
|
|
7
|
+
data.tar.gz: 1a8a6b73f9f72f80dbbba96c09d9345a85c2246367c76caa97693be5710388929f3b4468d92822d8d9e6b185798a9a1faf4f48f4f38165cbabd2433e318701b3
|
data/lib/belt/cli/dns_command.rb
CHANGED
|
@@ -192,19 +192,19 @@ module Belt
|
|
|
192
192
|
end
|
|
193
193
|
|
|
194
194
|
def load_dns_config
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
EnvironmentConfig.load(
|
|
195
|
+
# Load config from infrastructure/dns/belt.rb
|
|
196
|
+
# EnvironmentConfig.load expects (env_name, infra_dir:) where the path
|
|
197
|
+
# is infra_dir/env_name/belt.rb. We pass 'dns' as env_name.
|
|
198
|
+
EnvironmentConfig.load('dns')
|
|
199
199
|
end
|
|
200
200
|
|
|
201
201
|
def run_terraform(action, env_config, *extra_args)
|
|
202
202
|
cmd = ['terraform', action] + extra_args
|
|
203
203
|
env = {}
|
|
204
204
|
|
|
205
|
-
if env_config
|
|
206
|
-
env['AWS_PROFILE'] = env_config
|
|
207
|
-
puts "Using AWS profile: #{env_config
|
|
205
|
+
if env_config.aws_profile?
|
|
206
|
+
env['AWS_PROFILE'] = env_config.aws_profile
|
|
207
|
+
puts "Using AWS profile: #{env_config.aws_profile}" if action == 'init'
|
|
208
208
|
end
|
|
209
209
|
|
|
210
210
|
system(env, *cmd) || begin
|
data/lib/belt/version.rb
CHANGED