mux_tf 0.6.1 → 0.7.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c3852cfdec9e169e15fc8880a3958c286792be20f9f703f5d99a2ddce2e894bb
4
- data.tar.gz: 2d48d07bbf5ba173fab3da1d090372318bf03c861f59f0123de813cabf3901cb
3
+ metadata.gz: 41f1a93a9cc1bb9b03075271173a8afe09681fb9526030ca51629157c7d55005
4
+ data.tar.gz: c352b093345f3f8abbf780a0ebcd996ca10c7a24c2d085ac3ed8e42067eb9755
5
5
  SHA512:
6
- metadata.gz: a32888c969e1cf676d806c69edb430fb1d6b212098a7dd60a7848d78033186daaf2c0d3558039d0fcf4008600417c9eec4017b67996cea245c0d55a5f6c129a8
7
- data.tar.gz: 3a85546e8bad497ef9e103f438237591a53ae6b1a8c365e2d031e1b395c0f278bbbc587159241940df5a3ecfd40d59047a5abaadd16644f0d824b8a0fe7e876c
6
+ metadata.gz: 7115744f5a2d49be3dd29309614e94e6efbe7e29ff010079275a7144a731f2f722f30dd8e919a6ac94a29fcc37aba84566de460408cf2bcde9094931c3a9c4b2
7
+ data.tar.gz: 936d1b885d4699599e022da3bdb7b7e69703f4247807835c80cd5524a54c0d371dcacdfe04fd89e53d702a53d89319a681b092574037966042b59a90e8db809c
@@ -103,7 +103,7 @@ module MuxTf
103
103
 
104
104
  ignored += ENV["MUX_IGNORE"].split(",") if ENV["MUX_IGNORE"]
105
105
 
106
- dirs = Dir["**/*/.terraform"].map { |n| n.gsub(%r{/\.terraform}, "") }
106
+ dirs = Dir["**/.terraform.lock.hcl"].map { |f| File.dirname(f) }
107
107
  dirs.reject! { |d| d.in?(ignored) }
108
108
 
109
109
  dirs
@@ -108,7 +108,7 @@ module MuxTf
108
108
 
109
109
  parser.state(:modules_init, /^Initializing modules\.\.\./)
110
110
  parser.state(:modules_upgrade, /^Upgrading modules\.\.\./)
111
- parser.state(:backend, /^Initializing the backend\.\.\./, [:modules_init, :modules_upgrade])
111
+ parser.state(:backend, /^Initializing the backend\.\.\./, [:none, :modules_init, :modules_upgrade])
112
112
  parser.state(:plugins, /^Initializing provider plugins\.\.\./, [:backend])
113
113
 
114
114
  parser.state(:plugin_warnings, /^$/, [:plugins])
@@ -223,6 +223,9 @@ module MuxTf
223
223
  end
224
224
 
225
225
  log Paint[line, :yellow], depth: 1
226
+ when :none
227
+ next if line == ""
228
+ p [state, line]
226
229
  else
227
230
  p [state, line]
228
231
  end
@@ -242,6 +245,8 @@ module MuxTf
242
245
  log "#{Paint[dinfo["severity"].capitalize, color]}: #{dinfo["summary"]}", depth: 3
243
246
  if dinfo["detail"]&.include?("terraform init")
244
247
  remedies << :init
248
+ elsif /there is no package for .+ cached in/.match?(dinfo["summary"])
249
+ remedies << :init
245
250
  else
246
251
  log dinfo["detail"], depth: 4 if dinfo["detail"]
247
252
  if dinfo["range"]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MuxTf
4
- VERSION = "0.6.1"
4
+ VERSION = "0.7.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mux_tf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Banasik
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-11 00:00:00.000000000 Z
11
+ date: 2022-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport