terradactyl-terraform 0.15.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +4 -0
- data/.rubocop.yml +2 -0
- data/CHANGELOG.md +10 -0
- data/lib/terradactyl/terraform/commands/base.rb +8 -1
- data/lib/terradactyl/terraform/commands/destroy.rb +6 -0
- data/lib/terradactyl/terraform/commands/init.rb +6 -0
- data/lib/terradactyl/terraform/planfile.rb +5 -0
- data/lib/terradactyl/terraform/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 781eb6e61ab0938ebf9b48f361a01e79acc62a9dde8dd156bdd1fc330de3f85b
|
4
|
+
data.tar.gz: 414597476d74bcbac7da78ebf93e7e912d54568ed63b205c98ca4ac59145fd0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6af4090cea4a2bb2628a50a456963980fae1e968d4f8a616d71ee652a64a62e75ed03ed2ace27aa3075224e41872ce851772b6529910414041b8eba6cb9dfcb8
|
7
|
+
data.tar.gz: 5378985cd4cf8cef9d63645b7764baa8bdd484e6f17f8dfe3c76dd64cabaecc70ace8397a20340ba76064a9efd53226729b942e9a9b903dec35fecfb61e47a14
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -3,8 +3,15 @@
|
|
3
3
|
module Terradactyl
|
4
4
|
module Terraform
|
5
5
|
class << self
|
6
|
+
def calc_revision(version)
|
7
|
+
major, minor = version.split(/\.|-/).take(2)
|
8
|
+
major = major.to_i.zero? ? major : major + '_'
|
9
|
+
minor = minor.rjust(2, '0') # pad a single digit
|
10
|
+
['Rev', major, minor].join
|
11
|
+
end
|
12
|
+
|
6
13
|
def revision(version)
|
7
|
-
version ?
|
14
|
+
version ? calc_revision(version) : revisions.last
|
8
15
|
end
|
9
16
|
|
10
17
|
def revisions
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: terradactyl-terraform
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Warsing
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|