ruby-terraform 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -3
- data/lib/ruby_terraform/commands/clean.rb +2 -2
- data/lib/ruby_terraform/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72ff9e4da7ec2ba6ac9aab11d040b4009d188e9e
|
4
|
+
data.tar.gz: c846397f7b6bfe9244c8dc4cd641775efd299ad0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a494a6817091804ff9964b7e8be59df3d4e35c7d23c93b12c154dbc6cd57317e10e219960031b37f9078697d3133b632fcdc055e590a0e932d326db577b3f846
|
7
|
+
data.tar.gz: bb37a628e4fa40e5093468d32f5f1534e87682d586081afff3d386ed70ccc099124dbd26c9c8e6677e70d7de28fc0512344d440e8bdf0aedeb57332f74fe16bb
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -53,14 +53,13 @@ The clean command can be called in the following ways:
|
|
53
53
|
```ruby
|
54
54
|
RubyTerraform.clean
|
55
55
|
RubyTerraform.clean(directory: 'infra/.terraform')
|
56
|
-
RubyTerraform::Commands::Clean.new(
|
56
|
+
RubyTerraform::Commands::Clean.new(directory: 'infra/.terraform').execute
|
57
57
|
RubyTerraform::Commands::Clean.new.execute(directory: 'infra/.terraform')
|
58
58
|
```
|
59
59
|
|
60
60
|
When called, it removes the contents of the .terraform directory in the
|
61
61
|
working directory by default. If another directory is specified, it instead
|
62
|
-
removes the specified directory.
|
63
|
-
removes the .terraform directory from within the base directory.
|
62
|
+
removes the specified directory.
|
64
63
|
|
65
64
|
|
66
65
|
### RubyTerraform::Commands::Init
|
@@ -3,8 +3,8 @@ require 'fileutils'
|
|
3
3
|
module RubyTerraform
|
4
4
|
module Commands
|
5
5
|
class Clean
|
6
|
-
def initialize(
|
7
|
-
@directory =
|
6
|
+
def initialize(directory: nil)
|
7
|
+
@directory = directory ? directory : '.terraform'
|
8
8
|
end
|
9
9
|
|
10
10
|
def execute(opts = {})
|