rake_terraform 0.4.0 → 0.5.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/lib/rake_terraform/tasks/all.rb +64 -0
- data/lib/rake_terraform/tasks.rb +2 -1
- data/lib/rake_terraform/version.rb +1 -1
- data/lib/rake_terraform.rb +4 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e82b03df01c88f7146f5614281aea65bdf098746
|
4
|
+
data.tar.gz: c9f79cd69052a337eb3dfae6ac0544e7be174292
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ef64c32031ef9134bba24e8cc99ec27b47ccd781d3db71952955717ad92e537c54825e313adf42e286ff156ac0eb4a69593acb77d0cdc39030a28345577357a
|
7
|
+
data.tar.gz: 2a22dfa9c1a8aa8fdea3fcaa6df33c1fd1919c31a627ac2bfb9527cd3ee00463318a4d09d591fbb4818f205054b36e10c6da261023a97902b6e68d9174505ea7
|
data/Gemfile.lock
CHANGED
@@ -0,0 +1,64 @@
|
|
1
|
+
module RakeTerraform
|
2
|
+
module Tasks
|
3
|
+
class All < TaskLib
|
4
|
+
parameter :configuration_name, :required => true
|
5
|
+
parameter :configuration_directory, :required => true
|
6
|
+
|
7
|
+
parameter :backend
|
8
|
+
parameter :backend_config
|
9
|
+
|
10
|
+
parameter :vars
|
11
|
+
parameter :state_file
|
12
|
+
|
13
|
+
parameter :no_color, :default => false
|
14
|
+
parameter :no_backup, :default => false
|
15
|
+
|
16
|
+
parameter :backup_file
|
17
|
+
|
18
|
+
parameter :ensure_task, :default => :'terraform:ensure'
|
19
|
+
parameter :provision_task_name, :default => :provision
|
20
|
+
parameter :destroy_task_name, :default => :destroy
|
21
|
+
|
22
|
+
def define
|
23
|
+
Provision.new do |t|
|
24
|
+
t.name = provision_task_name
|
25
|
+
|
26
|
+
t.configuration_name = configuration_name
|
27
|
+
t.configuration_directory = configuration_directory
|
28
|
+
|
29
|
+
t.backend = backend
|
30
|
+
t.backend_config = backend_config
|
31
|
+
|
32
|
+
t.vars = vars
|
33
|
+
t.state_file = state_file
|
34
|
+
|
35
|
+
t.no_color = no_color
|
36
|
+
t.no_backup = no_backup
|
37
|
+
|
38
|
+
t.backup_file = backup_file
|
39
|
+
|
40
|
+
t.ensure_task = ensure_task
|
41
|
+
end
|
42
|
+
Destroy.new do |t|
|
43
|
+
t.name = destroy_task_name
|
44
|
+
|
45
|
+
t.configuration_name = configuration_name
|
46
|
+
t.configuration_directory = configuration_directory
|
47
|
+
|
48
|
+
t.backend = backend
|
49
|
+
t.backend_config = backend_config
|
50
|
+
|
51
|
+
t.vars = vars
|
52
|
+
t.state_file = state_file
|
53
|
+
|
54
|
+
t.no_color = no_color
|
55
|
+
t.no_backup = no_backup
|
56
|
+
|
57
|
+
t.backup_file = backup_file
|
58
|
+
|
59
|
+
t.ensure_task = ensure_task
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
data/lib/rake_terraform/tasks.rb
CHANGED
data/lib/rake_terraform.rb
CHANGED
@@ -6,6 +6,10 @@ require 'rake_terraform/tasks'
|
|
6
6
|
module RakeTerraform
|
7
7
|
include RubyTerraform
|
8
8
|
|
9
|
+
def self.define_command_tasks(&block)
|
10
|
+
RakeTerraform::Tasks::All.new(&block)
|
11
|
+
end
|
12
|
+
|
9
13
|
def self.define_installation_tasks(opts = {})
|
10
14
|
RubyTerraform.configure do |c|
|
11
15
|
c.binary = File.join(
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake_terraform
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toby Clemson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake_dependencies
|
@@ -145,6 +145,7 @@ files:
|
|
145
145
|
- lib/rake_terraform/exceptions.rb
|
146
146
|
- lib/rake_terraform/tasklib.rb
|
147
147
|
- lib/rake_terraform/tasks.rb
|
148
|
+
- lib/rake_terraform/tasks/all.rb
|
148
149
|
- lib/rake_terraform/tasks/destroy.rb
|
149
150
|
- lib/rake_terraform/tasks/provision.rb
|
150
151
|
- lib/rake_terraform/version.rb
|