Commit cf815a01 authored by Rich's avatar Rich
Browse files

Move code present check to runner, to allow tasks to be rendered at least

parent e2359959
......@@ -3,7 +3,7 @@
_gemname=terraform-wrapper
pkgname=ruby-${_gemname}
pkgver=1.0.2
pkgver=1.0.3
pkgrel=1
pkgdesc="A ruby wrapper for managing Terraform binaries and remote state."
arch=(any)
......
......@@ -34,8 +34,6 @@ module TerraformWrapper
@name = options["name"]
@path = File.join(@base, @name)
logger.fatal("Terraform code location: #{@path} does not exist!") unless exists
end
###############################################################################
......
......@@ -25,6 +25,8 @@ module TerraformWrapper
###############################################################################
def initialize(binary:, code:)
logger.fatal("Terraform code location: #{code.path} does not exist!") unless code.check
@binary = binary
@code = code
......
......@@ -4,7 +4,7 @@ module TerraformWrapper
###############################################################################
VERSION = "1.0.2"
VERSION = "1.0.3"
###############################################################################
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment