brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aledsage <...@git.apache.org>
Subject [GitHub] incubator-brooklyn pull request: Make YAML more powerful
Date Tue, 14 Apr 2015 13:40:35 GMT
Github user aledsage commented on a diff in the pull request:

    https://github.com/apache/incubator-brooklyn/pull/595#discussion_r28326802
  
    --- Diff: docs/guide/yaml/yaml-reference.md ---
    @@ -157,12 +166,14 @@ concise DSL defined here:
     * `$brooklyn:formatString("pattern e.g. %s %s", "field 1", "field 2")` returns a future
which creates the formatted string
       with the given parameters, where parameters may be strings *or* other tasks such as
`attributeWhenReady`
     * `$brooklyn:literal("string")` returns the given string as a literal (suppressing any
`$brooklyn:` expansion)
    -* `$brooklyn:sensor("io.brooklyn.ContainingEntityClass", "sensor.name")` returns the
strongly typed sensor defined in the given class
    +* `$brooklyn:object(Map)` creates an object, using keys `type` to define the java type,
    --- End diff --
    
    Longer term, we should include an example here. Folk not familiar with yaml will likely
struggle with what `object(Map)` means.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message