iapi-idlc-sdk-pfm 1.0.21 → 1.0.23

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
  SHA256:
3
- metadata.gz: 93d8740fee01befa94c8dec740ff1642b5daf0b442bbc498300458c0715921dd
4
- data.tar.gz: 1c8524e3c44d73c5f3d5ebbd0abc3c33fd734997fee23a5eca1e99261190b412
3
+ metadata.gz: 4a32820d50fec0ce8b36efc5ce98186f7ebfdaaba66babe47ee275322dc25278
4
+ data.tar.gz: 94dd9f25ae01f1fe7c30d1e12a99e6df53e5644a066856b35a22b5af2a0037e2
5
5
  SHA512:
6
- metadata.gz: ff920c43cdd9337c69a17cd06f5db74d640ebd92051ab2d64af3fd05701d665dd0c13487a29a93d61a9f7ac99dff6c268e235a31240a5451136e338f7d486df0
7
- data.tar.gz: fc2504775c6538c698485a7bd43a66304bcbeca05b9386547265b45b070bd8371f52289c146bf5bfb6e1e6832a4be234ce8e2f6e5494774f1a43917e2d5a8933
6
+ metadata.gz: 520463754084efa3c6d3652f8410ec6ba621078b7645d7172147c0ca0bd6682c819c830dac3bce705b5e03f72c3af30c3353eedb30d9c8e3440e0b5dfe56d676
7
+ data.tar.gz: 5710b93fa597becf02e4328741d8d801d0e0553b516cc1d39172ba598014cddcf86067c1df5880617059b0e4714f0de4b0b1ff431952d6b7efa91ddc920a3056
@@ -63,7 +63,7 @@ module Pfm
63
63
 
64
64
  def apply(dir)
65
65
  if upgraded_terraform?
66
- Terraform::Binary::Command.run("-chdir #{dir} apply")
66
+ Terraform::Binary::Command.run("-chdir=#{dir} apply")
67
67
  else
68
68
  Terraform::Binary.apply(dir.to_s) || raise
69
69
  end
@@ -222,6 +222,9 @@ module Pfm
222
222
  FileUtils.mkdir_p "inf/env/kp"
223
223
  download_private_key(env_metadata['account']['tfstate_bucket'], env_metadata['environment_key'], "inf/env/kp")
224
224
  Idlc::Deploy::Keypair.generate("inf/env/kp")
225
+ if upgraded_terraform?
226
+ FileUtils.ln_sf("../inf", "package-infra/inf")
227
+ end
225
228
 
226
229
  config = Idlc::Deploy::Config.new(SETTINGS['AWS_REGION'])
227
230
  config.configure_state(
@@ -54,7 +54,7 @@ module Pfm
54
54
  Idlc::Deploy::Config.add_deployment_var('app_release', 'null')
55
55
 
56
56
  if upgraded_terraform?
57
- Terraform::Binary::Command.run("-chdir #{dir} destroy")
57
+ Terraform::Binary::Command.run("-chdir=#{dir} destroy")
58
58
  else
59
59
  Terraform::Binary.destroy("#{dir}")
60
60
  end
@@ -37,7 +37,7 @@ module Pfm
37
37
 
38
38
  begin
39
39
  if upgraded_terraform?
40
- Terraform::Binary::Command.run("-chdir #{inf_base_dir}/tf fmt")
40
+ Terraform::Binary::Command.run("-chdir=#{inf_base_dir}/tf fmt")
41
41
  else
42
42
  tf_paths.each do |path|
43
43
  # Format the file to a canonical syntax
@@ -71,8 +71,8 @@ module Pfm
71
71
  def plan(dir)
72
72
  begin
73
73
  if upgraded_terraform?
74
- Terraform::Binary::Command.run("-chdir #{dir} plan") unless @config[:landscape]
75
- Terraform::Binary::Command.run("-chdir #{dir} plan | landscape") if @config[:landscape]
74
+ Terraform::Binary::Command.run("-chdir=#{dir} plan") unless @config[:landscape]
75
+ Terraform::Binary::Command.run("-chdir=#{dir} plan | landscape") if @config[:landscape]
76
76
  else
77
77
  Terraform::Binary.plan(dir.to_s) unless @config[:landscape]
78
78
  Terraform::Binary.plan("#{dir} | landscape") if @config[:landscape]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iapi-idlc-sdk-pfm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.21
4
+ version: 1.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Cazell