Module: Tataru::CreateSubroutines

Included in:
SubroutineCompiler
Defined in:
lib/tataru/create_subroutines.rb

Overview

create subroutines

Instance Method Summary collapse

Instance Method Details

#check_create_instructionsObject



16
17
18
19
20
21
# File 'lib/tataru/create_subroutines.rb', line 16

def check_create_instructions
  [
    *load_resource_instructions,
    :check_create
  ]
end

#commit_create_instructionsObject



23
24
25
# File 'lib/tataru/create_subroutines.rb', line 23

def commit_create_instructions
  []
end

#create_instructionsObject



6
7
8
9
10
11
12
13
14
# File 'lib/tataru/create_subroutines.rb', line 6

def create_instructions
  @rrep.check_required_fields!
  [
    *load_resource_instructions,
    { key: :properties },
    { value_rom: @rrep.name },
    :create
  ]
end

#finish_create_instructionsObject



27
28
29
# File 'lib/tataru/create_subroutines.rb', line 27

def finish_create_instructions
  []
end