lib/kite/terraform.rb in kite-1.0.6 vs lib/kite/terraform.rb in kite-1.0.10
- old
+ new
@@ -5,17 +5,20 @@
@core = core
@env_name = options[:env]
end
def run(command, *args)
+ exit_status = 0
STDERR.puts "Loading env"
load_env
script = "terraform #{command} #{args.join " "}"
STDERR.puts script
Dir.chdir("config/environments/#{@env_name}") do
system(script)
+ exit_status = $?.exitstatus
end
+ exit_status
end
def load_env
load_vars
load_cloud