module Tataru::UpdateSubroutines
update subroutines
Public Instance Methods
check_update_instructions()
click to toggle source
# File lib/tataru/update_subroutines.rb, line 21 def check_update_instructions [ { value_update: @rrep.name }, { compare: :recreate }, { goto_if: "recreate_check_#{@rrep.name}" }, { value_update: @rrep.name }, { compare: :modify }, { goto_if: "modify_check_#{@rrep.name}" } ] end
commit_update_instructions()
click to toggle source
# File lib/tataru/update_subroutines.rb, line 32 def commit_update_instructions [ { value_update: @rrep.name }, { compare: :recreate }, { goto_if: "recreate_commit_#{@rrep.name}" } ] end
finish_update_instructions()
click to toggle source
# File lib/tataru/update_subroutines.rb, line 40 def finish_update_instructions [ { value_update: @rrep.name }, { compare: :recreate }, { goto_if: "recreate_finish_#{@rrep.name}" } ] end
modify_check_instructions()
click to toggle source
# File lib/tataru/update_subroutines.rb, line 57 def modify_check_instructions [ *load_resource_instructions, :check_update ] end
modify_instructions()
click to toggle source
# File lib/tataru/update_subroutines.rb, line 48 def modify_instructions [ *load_resource_instructions, { key: :properties }, { value_rom: @rrep.name }, :update ] end
recreate_check_instructions()
click to toggle source
# File lib/tataru/update_subroutines.rb, line 81 def recreate_check_instructions [ *check_create_instructions ] end
recreate_commit_instructions()
click to toggle source
# File lib/tataru/update_subroutines.rb, line 87 def recreate_commit_instructions return [] unless desc.delete_at_end? [ { key: :resource_name }, { value: "_deletable_#{@rrep.name}" }, { key: :resource_desc }, { value: @rrep.desc.class.name }, :delete ] end
recreate_finish_instructions()
click to toggle source
# File lib/tataru/update_subroutines.rb, line 99 def recreate_finish_instructions return [] unless desc.delete_at_end? [ { key: :resource_name }, { value: "_deletable_#{@rrep.name}" }, { key: :resource_desc }, { value: @rrep.desc.class.name }, :check_delete ] end
recreate_instructions()
click to toggle source
# File lib/tataru/update_subroutines.rb, line 64 def recreate_instructions deletion_routine = [ *load_resource_instructions, :mark_deletable ] unless desc.delete_at_end? deletion_routine = [ *delete_instructions, *check_delete_instructions ] end [ *deletion_routine, *create_instructions ] end
update_instructions()
click to toggle source
# File lib/tataru/update_subroutines.rb, line 6 def update_instructions [ *load_resource_instructions, :read, *load_resource_instructions, :rescmp, { value_update: @rrep.name }, { compare: :recreate }, { goto_if: "recreate_#{@rrep.name}" }, { value_update: @rrep.name }, { compare: :modify }, { goto_if: "modify_#{@rrep.name}" } ] end