class Biosphere::CLI::TerraformPlanning::TerraformPlan

Attributes

items[RW]

Public Class Methods

new() click to toggle source
# File lib/biosphere/cli/terraformplanning.rb, line 240
def initialize()
    @items = []
    @graph = nil
end

Public Instance Methods

get_resources() click to toggle source
# File lib/biosphere/cli/terraformplanning.rb, line 289
def get_resources()
    @items.select { |x| x[:action] != :not_picked }.collect { |x| x[:resource_name] }
end
has_unpicked_resources() click to toggle source
# File lib/biosphere/cli/terraformplanning.rb, line 285
def has_unpicked_resources()
    @items.find_index { |x| x[:action] == :not_picked } != nil
end
length() click to toggle source
# File lib/biosphere/cli/terraformplanning.rb, line 245
def length
    @items.length
end
print(out = STDOUT) click to toggle source