Class: Terraspace::Terraform::Tfc::Runs::Lister
- Defined in:
- lib/terraspace/terraform/tfc/runs/lister.rb
Instance Method Summary collapse
Methods inherited from Base
#build_project, #initialize, #runs
Methods included from Api::Client
#api, #backend, #build, #remote, #workspace_name
Methods included from Util::Sure
Methods included from Util::Logging
Constructor Details
This class inherits a constructor from Terraspace::Terraform::Tfc::Runs::Base
Instance Method Details
#run ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/terraspace/terraform/tfc/runs/lister.rb', line 3 def run build_project if runs.empty? logger.info "No runs found" return end presenter = CliFormat::Presenter.new(@options) presenter.header = ["Id", "Status", "Message", "Created At"] runs.each do |item| p = ItemPresenter.new(item) row = [p.id, p.status, p., p.created_at] presenter.rows << row end presenter.show end |