terraspace 0.4.2 → 0.4.3

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: 0174dca33a15bfe2c0eb0a1e0f573599ab7de2850d746e6f0be4e34aec573e39
4
- data.tar.gz: 4d2b91fb5631d3fa1c32379845cc1f3d677238edc7133015cf99050e874339f4
3
+ metadata.gz: '09ac4834cd477fb90ceb545d7dc08fdbacbb42231d51c6e0b27698c37ddc2946'
4
+ data.tar.gz: 29a223281b24965c0f33096b180f7a49e5f62e7bd74718e71f16e5fdd072ba1c
5
5
  SHA512:
6
- metadata.gz: b624c36518fd03e4b03c8ddba62dc196ea656f26921086ddb3dec4859f613b3da2534f0320f0c6197a53fd31d9f5a44ad98f5c5c4b3914164185707a42eb007e
7
- data.tar.gz: 87b7625d52efd046193ec7ed9abfb7e311b7b143d70e492db84e60cccb4b90fea872d1f6333901d95a6c9af7d07bf2d5027980aa482794d5f60b27ed9a8e3e41
6
+ metadata.gz: 4436cab7ed69ab13e3bda23349c49b3f9e6d3a2fba04b160aba229593aa764f8a7f411c617c1f8892581f4a453a2dcc7c9eb427a976722f40489f518642c0c4a
7
+ data.tar.gz: b2f7aded9d6ba98b290d35e02629cb0119eb30a31a22baaa25f44aef94d11fa7a724b534dd9df9d4e918f142d0990743f67e1f49a3412d1df2caf5f08a6819a6
@@ -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.4.3]
7
+ * #49 add info --path option
8
+
6
9
  ## [0.4.2]
7
10
  * #48 add logs pid option
8
11
  * default to input false, encourage set tfvars
@@ -86,6 +86,7 @@ module Terraspace
86
86
  long_desc Help.text(:info)
87
87
  instance_option.call
88
88
  option :format, desc: "Output formats: #{CliFormat.formats.join(', ')}"
89
+ option :path, desc: "Print path to built path"
89
90
  def info(mod)
90
91
  Info.new(options.merge(mod: mod)).run
91
92
  end
@@ -3,6 +3,14 @@ class Terraspace::CLI
3
3
  extend Memoist
4
4
 
5
5
  def run
6
+ if @options[:path]
7
+ show_path
8
+ else
9
+ show_all
10
+ end
11
+ end
12
+
13
+ def show_all
6
14
  presenter = CliFormat::Presenter.new(@options)
7
15
  presenter.header = %w[Name Value]
8
16
  info.each do |k,v|
@@ -11,6 +19,10 @@ class Terraspace::CLI
11
19
  presenter.show
12
20
  end
13
21
 
22
+ def show_path
23
+ puts info[:cache_dir]
24
+ end
25
+
14
26
  def info
15
27
  @mod.to_info
16
28
  end
@@ -1,3 +1,3 @@
1
1
  module Terraspace
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
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.4.2
4
+ version: 0.4.3
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-10-20 00:00:00.000000000 Z
11
+ date: 2020-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport