terraspace 0.5.7 → 0.5.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7497c859165e1d927b8ac4e7b50133b3eec5c807e2e9c8d3e088f7ff69327570
4
- data.tar.gz: f3502a6e9983e8ffc93b8ffc9c380f2c2d46771c5719f7e5da5ce9060debb68d
3
+ metadata.gz: ff60ae09b5f5278378d1d0343e68e19bd697825e3206a981fc3023d914b7710a
4
+ data.tar.gz: a036994bf09c8ef78323b64b234dd083d438bb63d552444178a611ac05cc886e
5
5
  SHA512:
6
- metadata.gz: e5c718910a1da711fde1b5bb5282eb12f66af3c2336aa332fbf1f0320ffcb2b6daffe7c98ea02fb4b266030a314ad974d411bff34b90bac520240f7e4d495d26
7
- data.tar.gz: cfdbd1ae125224dea80efb7bdfdf4b251e7767b49bb05ed38d735fda7c8eab29f86e88335b648873fbd5bcaf9c40ea37b9b845cc0b9ed6b4d0e3148d248f9b54
6
+ metadata.gz: 16e8f2ff6676201c697480a8c25f50b32a3a84c6fe7ee18d8517bef1ddf177f86cbbfcf3112e116e7ef93a7cf201e73c924306614a4f8061c9b8c75e13b75be7
7
+ data.tar.gz: 1cc236483836d3453216559c2ce378716b5352ddb482ff6ba03f6a4f2a58251b3e6f44f2f6dc56acac0be49ffed7bb683d572a8df5176ca2557165b2b16778eb
@@ -3,6 +3,9 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
5
 
6
+ ## [0.5.8] - 2020-12-04
7
+ - [#67](https://github.com/boltops-tools/terraspace/pull/67) fix find placeholder stack so config/terraform only builds for stacks
8
+
6
9
  ## [0.5.7] - 2020-12-02
7
10
  - [#64](https://github.com/boltops-tools/terraspace/pull/64) fix completion_script
8
11
 
@@ -18,17 +18,17 @@ module Terraspace::CLI::Build
18
18
  mod = @options[:mod]
19
19
  if !mod or %w[placeholder].include?(mod)
20
20
  logger.info "Building one of the modules to get backend.tf info"
21
- mod = find_mod
21
+ mod = find_stack
22
22
  end
23
23
  Terraspace::Builder.new(@options.merge(mod: mod, init: false)).run # generate and init
24
24
  Terraspace::Mod.new(mod, @options) # mod metadata
25
25
  end
26
26
 
27
27
  # Used by: terraspace build placeholder
28
- def find_mod
29
- mod_path = Dir.glob("{app,vendor}/{modules,stacks}/*").last
28
+ def find_stack
29
+ mod_path = Dir.glob("{app,vendor}/{stacks}/*").last
30
30
  unless mod_path
31
- logger.info "No modules or stacks found."
31
+ logger.info "No stacks found."
32
32
  exit 0
33
33
  end
34
34
  File.basename(mod_path) # mod name
@@ -19,7 +19,7 @@ module Terraspace
19
19
 
20
20
  def placeholder(name)
21
21
  if name == "placeholder"
22
- Terraspace::CLI::Build::Placeholder.new(@options).find_mod
22
+ Terraspace::CLI::Build::Placeholder.new(@options).find_stack
23
23
  else
24
24
  name
25
25
  end
@@ -1,3 +1,3 @@
1
1
  module Terraspace
2
- VERSION = "0.5.7"
2
+ VERSION = "0.5.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terraspace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7
4
+ version: 0.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-12-02 00:00:00.000000000 Z
11
+ date: 2020-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport