diff options
| author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-01-21 16:23:39 -0500 |
|---|---|---|
| committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-01-24 14:39:00 -0500 |
| commit | c93bcc978a48ab72c9c0193f89ae7eda61e2a996 (patch) | |
| tree | 10d6ed79efb8a352647bc74bd9f6a3bdb0140e20 /example | |
| parent | 5d9cb05ccc20a0356c9bf4f77613d942b5467197 (diff) | |
| download | phosphor-inventory-manager-c93bcc978a48ab72c9c0193f89ae7eda61e2a996.tar.gz phosphor-inventory-manager-c93bcc978a48ab72c9c0193f89ae7eda61e2a996.zip | |
pimgen: Switch to new Mako templates
A substantial structural update to pimgen.
The existing template and supporting code is difficult
to enhance. Given that the code being generated by
pimgen is primarily a large map, with map elements being
initialized by simple types, initializers lists or the result
of method calls - structure pimgen types in a way that track
these givens.
yaml: Simplify the yaml structures.
MethodCall: become an argument.
Mako: Simplify main template.
Use new convenience types.
Use new decorator types.
Remove unused function throughout.
Change-Id: I1c3c16776ef8d5d7e005142999817e0371f9ce89
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'example')
| -rw-r--r-- | example/events.d/match1.yaml | 24 | ||||
| -rw-r--r-- | example/events.d/match2.yaml | 17 |
2 files changed, 18 insertions, 23 deletions
diff --git a/example/events.d/match1.yaml b/example/events.d/match1.yaml index 19d501a..d419c74 100644 --- a/example/events.d/match1.yaml +++ b/example/events.d/match1.yaml @@ -15,20 +15,18 @@ events: member: PropertiesChanged filters: - name: propertyChangedTo - args: - interface: xyz.openbmc_project.Example.Iface2 - property: ExampleProperty2 - value: - type: string - value: yyyxxx + interface: xyz.openbmc_project.Example.Iface2 + property: ExampleProperty2 + value: + type: string + value: yyyxxx actions: - name: setProperty - args: - interface: xyz.openbmc_project.Example.Iface1 - property: ExampleProperty1 - path: /changeme - value: - type: string - value: changed + interface: xyz.openbmc_project.Example.Iface1 + property: ExampleProperty1 + path: /changeme + value: + type: string + value: changed # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 diff --git a/example/events.d/match2.yaml b/example/events.d/match2.yaml index 84b28f1..5fe2388 100644 --- a/example/events.d/match2.yaml +++ b/example/events.d/match2.yaml @@ -15,19 +15,16 @@ events: member: PropertiesChanged filters: - name: propertyChangedTo - args: - interface: xyz.openbmc_project.Example.Iface2 - property: ExampleProperty2 - value: - type: string - value: xxxyyy + interface: xyz.openbmc_project.Example.Iface2 + property: ExampleProperty2 + value: + type: string + value: xxxyyy actions: - name: destroyObject - args: - path: /deleteme1 + path: /deleteme1 - name: destroyObject - args: - path: /deleteme2 + path: /deleteme2 # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 |

