domed-city 1.4.1 → 1.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: 3fe85a6075f26afa7616f4f88c0f187b44df0121
4
- data.tar.gz: 46dfec2b5cc967d4f4854e773de3c827a661697a
3
+ metadata.gz: 2d5ef6a8c99b50bd6bd148ec82e6377ac443dc7a
4
+ data.tar.gz: fb0f40650c9923d8623f63e3bb66aa9f435d8d1f
5
5
  SHA512:
6
- metadata.gz: 6ad35d678217bfa9ffedc7cfe5f12af2d1f2c547c3e622f712f7c9cd7b88b80d30c13b02bdcc98a4e2a0fa00d83352ab40a589b81ca4614a9665438adfa0b375
7
- data.tar.gz: 3756417a56315946dd93860a7427a13dde0e9ce25a6510b7936dd68baf8fdc0e928f4d3ccbdb0b92cb6d3b62277ee4f22383339e5561f94199940c004ee9f17c
6
+ metadata.gz: 6278d9578fe6afb9e14e61ade2ed2fb975cd079484a54d44e32774b5207e5cb30e9bb236f459b002496a9dfef469894398bce1cd4fcd20499fa78b48dbe7e2ba
7
+ data.tar.gz: f657b97ca2869409471aa8d457706339412d6d54491335fb2119d10745c55ae297c376b905e830a76f71a19c4bbb9a56d5a75d2096670d77dc7de7d41206033c
data/README.md CHANGED
@@ -45,7 +45,6 @@ Usage:
45
45
  where [commands] are:
46
46
  -p, --plan Creates a Terraform plan
47
47
  -a, --apply Applies a Terraform plan
48
- -l, --plan-destroy Creates a destructive Terraform plan
49
48
  -s, --state Synchronises the Terraform state
50
49
  -o, --output Print all Terraform output variables
51
50
  -v, --version Print version and exit
data/bin/dome CHANGED
@@ -15,7 +15,6 @@ EOS
15
15
 
16
16
  opt :plan, 'Creates a Terraform plan'
17
17
  opt :apply, 'Applies a Terraform plan'
18
- opt :plan_destroy, 'Creates a destructive Terraform plan'
19
18
  opt :state, 'Synchronises the Terraform state'
20
19
  opt :output, 'Print all Terraform output variables'
21
20
  end
@@ -29,8 +28,6 @@ if opts[:plan]
29
28
  @dome.plan
30
29
  elsif opts[:apply]
31
30
  @dome.apply
32
- elsif opts[:plan_destroy]
33
- @dome.plan_destroy
34
31
  elsif opts[:state]
35
32
  @dome.state.s3_state
36
33
  elsif opts[:output]
@@ -28,14 +28,6 @@ module Dome
28
28
  create_plan
29
29
  end
30
30
 
31
- def plan_destroy
32
- delete_terraform_directory
33
- delete_plan_file
34
- install_terraform_modules
35
- @state.synchronise_s3_state
36
- create_destroy_plan
37
- end
38
-
39
31
  def apply
40
32
  command = "terraform apply #{@plan_file}"
41
33
  failure_message = 'something went wrong when applying the TF plan'
@@ -61,12 +53,6 @@ module Dome
61
53
  FileUtils.rm_f @plan_file
62
54
  end
63
55
 
64
- def create_destroy_plan
65
- command = "terraform plan -destroy -module-depth=1 -out=#{@plan_file} -var-file=params/env.tfvars"
66
- failure_message = 'something went wrong when creating the TF plan'
67
- execute_command(command, failure_message)
68
- end
69
-
70
56
  def install_terraform_modules
71
57
  command = 'terraform get -update=true'
72
58
  failure_message = 'something went wrong when pulling remote TF modules'
data/lib/dome/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dome
2
- VERSION = '1.4.1'
2
+ VERSION = '1.5.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: domed-city
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Snape
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-25 00:00:00.000000000 Z
11
+ date: 2016-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler