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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8291b39a4b15b2b20eec4eff3dbcf88a1575dfd9
4
- data.tar.gz: b8422d70d988283989c7cca3fdb7853d2e22430f
3
+ metadata.gz: e82b03df01c88f7146f5614281aea65bdf098746
4
+ data.tar.gz: c9f79cd69052a337eb3dfae6ac0544e7be174292
5
5
  SHA512:
6
- metadata.gz: 0fbfacaa511f513de1edc50740b3cbfe5c8981f7fef1c14d53792214bbb2c78c9923f2a0346b9b83ec8fe2419274cfdf4481c08ff47244370178c8a1f3811f97
7
- data.tar.gz: 9a9279bc071b401849becf19435eef42ac17c2eb28edd8091f2139985f0b4d4adc32a7ba0dcfc29b695426dae3e3450148379733dee51b1c0dce260071da0ef5
6
+ metadata.gz: 6ef64c32031ef9134bba24e8cc99ec27b47ccd781d3db71952955717ad92e537c54825e313adf42e286ff156ac0eb4a69593acb77d0cdc39030a28345577357a
7
+ data.tar.gz: 2a22dfa9c1a8aa8fdea3fcaa6df33c1fd1919c31a627ac2bfb9527cd3ee00463318a4d09d591fbb4818f205054b36e10c6da261023a97902b6e68d9174505ea7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_terraform (0.4.0)
4
+ rake_terraform (0.5.0)
5
5
  rake_dependencies (~> 0.15)
6
6
  ruby-terraform (~> 0.4)
7
7
 
@@ -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
@@ -1,2 +1,3 @@
1
1
  require_relative 'tasks/provision'
2
- require_relative 'tasks/destroy'
2
+ require_relative 'tasks/destroy'
3
+ require_relative 'tasks/all'
@@ -1,3 +1,3 @@
1
1
  module RakeTerraform
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
@@ -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.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-17 00:00:00.000000000 Z
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