Class: Gitlab::Ci::Reports::TerraformReports

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/ci/reports/terraform_reports.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTerraformReports

Returns a new instance of TerraformReports.


9
10
11
# File 'lib/gitlab/ci/reports/terraform_reports.rb', line 9

def initialize
  @plans = {}
end

Instance Attribute Details

#plansObject (readonly)

Returns the value of attribute plans


7
8
9
# File 'lib/gitlab/ci/reports/terraform_reports.rb', line 7

def plans
  @plans
end

Instance Method Details

#add_plan(name, plan) ⇒ Object


13
14
15
# File 'lib/gitlab/ci/reports/terraform_reports.rb', line 13

def add_plan(name, plan)
  plans[name] = plan
end