-
Notifications
You must be signed in to change notification settings - Fork 0
/
first.yml
89 lines (81 loc) · 1.75 KB
/
first.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: 0.0.1
meta:
templates_dir:
name: templates
presenters_dir:
name: presenters
output_dir:
name: generated
parsers_dir:
name: parsers
functions_dir:
name: functions
struct:
- dir:
name: controller
file:
name: dst.rb
gen: false
src: src.rb
- dir:
name: model
file:
name: dst2.rb
src: src2.rb
gen: false
- dir:
name: view
rule:
file: ninjas_rule.py
lang:
name: python
ver: 3
files:
- file:
rule:
file: ninjas_rule2.py
lang:
name: python
ver: 3
name: dst3.rb
src: src3.rb
gen: false
- file:
rule: referenced_rule
# we need to add a variable
s_name: dst_relative_to_$srcfile
src: src4.rb.tmpl
gen: true
var:
# type could be custom or xml or db or db_table
type: custom
presenter: presenters/my_presenter
parser: parsers/my_parser
data: src4/*.rb.tmpl
- file:
rule: referenced_rule
# naming based on a generated name that depends on the var section
# this function shall be defined for, in the functions dir
v_name: function_to_name_dst4_based_on_var_data
src: src5.rb.tmpl
gen: true
var:
# type could be custom or db or db_table
type: xml
presenter: presenters/my_presenter2
parser: parsers/my_parser
data: src5/*
rules:
- rule:
name: referenced_rule
file: ninjas_rule3.py
lang:
name: python
ver: 3
functions:
- function:
name: function_to_name_dst4_based_on_var_data
file: dst4_naming.py
lang:
name: python
ver: 3