iapi-idlc-sdk-pfm 1.0.20 → 1.0.22

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: 582467c3a9ea597f090ff41878d3520548161c8c6e332a25eab9fcff0ec705dd
4
- data.tar.gz: 706bc9e64eeb854cf968d30ac427a04ab224bd0afdef81b4a4505abdaa4ce68e
3
+ metadata.gz: b73ca5e0c0c2441f4644277f2f4f76566328dd1cf5e8d53e6f07ebcadda9ba73
4
+ data.tar.gz: 74117abd4b3dff0c5831a49ae5450c8a431e2a0fcd2f875b44c123d4a5a61790
5
5
  SHA512:
6
- metadata.gz: 3eebb48e22307be0eba5ca214b74bc64b7bb8074229be9989afb5d58501feec1cee1e1eb2f9d1c97afafafa541072f580890b3e62b190176f45c0156edfde190
7
- data.tar.gz: 6072ba8fbc65c73b99019effc68631c62587a921a80f3dd62a4d8e4e2606235f975c28137fb88d42b892721644c7865a34c6224b22b5afc55a9eb37b48cd38c9
6
+ metadata.gz: c8bf2e9e453e3b1f0da366f0a21ec1cad5f87338e7bcd154adfc7761b63e499c18307045b762abe0395a98b6f8b53cafb014ddf018cd8d161bf7b47c2e61f762
7
+ data.tar.gz: 3b6ccb0621c783de46de934be04a64fdeecf24858de1f8221c69a113164dfe4b15f1c8f63a0a69dd0f25eb669aab1b7bf06ec0f3a2f6efb87615309e3aa86ded
@@ -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
@@ -237,7 +237,7 @@ module Pfm
237
237
 
238
238
  def upgraded_terraform?
239
239
  major_version = Terraform::Binary.config.version.split(".")[0]
240
- major_version > 0
240
+ major_version.to_i > 0
241
241
  end
242
242
 
243
243
  def build_base_dir
@@ -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.20
4
+ version: 1.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Cazell