diff options
Diffstat (limited to 'app/models/backends/terraform_aws.rb')
-rw-r--r-- | app/models/backends/terraform_aws.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/backends/terraform_aws.rb b/app/models/backends/terraform_aws.rb index 65ca68c..d3d56d1 100644 --- a/app/models/backends/terraform_aws.rb +++ b/app/models/backends/terraform_aws.rb @@ -50,6 +50,10 @@ class Backends::TerraformAws < ApplicationRecord 'Amazon Web Services' end + def self.available? + File.exist? "#{ENV['PATH'].split(':').first}/terraform-provider-aws" + end + def type_and_id "#{self.class.name}=#{id}" end |