Class: Terraspace::Terraform::Tfc::Runs::Pruner
- Includes:
- Api::Client
- Defined in:
- lib/terraspace/terraform/tfc/runs/pruner.rb
Instance Method Summary collapse
-
#initialize(mod, options = {}) ⇒ Pruner
constructor
A new instance of Pruner.
- #run ⇒ Object
Methods included from Api::Client
#api, #backend, #build, #remote, #workspace_name
Methods inherited from Base
Methods included from Util::Sure
Methods included from Util::Logging
Constructor Details
#initialize(mod, options = {}) ⇒ Pruner
Returns a new instance of Pruner.
6 7 8 9 |
# File 'lib/terraspace/terraform/tfc/runs/pruner.rb', line 6 def initialize(mod, ={}) super @queue, @kept, @needs_pruning = [], nil, false end |
Instance Method Details
#run ⇒ Object
11 12 13 14 15 16 |
# File 'lib/terraspace/terraform/tfc/runs/pruner.rb', line 11 def run build_project build_queue are_you_sure? process_queue end |