Sha256: b8b2636b7f5295edd98ec25264bfcdba32a64ccbe8a7f1c250abc3ce50288c19
Contents?: true
Size: 891 Bytes
Versions: 3
Compression:
Stored size: 891 Bytes
Contents
# frozen_string_literal: true require_relative '../value_equality' require_relative 'change' module RubyTerraform module Models class OutputChange include ValueEquality attr_reader(:name) def initialize(name, content) @name = name @content = content end def change Change.new(@content) end def no_op? change.no_op? end def create? change.create? end def update? change.update? end def delete? change.delete? end def present_before? no_op? || update? || delete? end def present_after? no_op? || create? || update? end def inspect to_h.inspect end def to_h { @name => @content } end def state [@name, @content] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems