Merge lp:~jdstrand/snappy/snappy.bus-name-docs into lp:~snappy-dev/snappy/snappy-moved-to-github

Proposed by Jamie Strandboge
Status: Merged
Approved by: Jamie Strandboge
Approved revision: 454
Merged at revision: 454
Proposed branch: lp:~jdstrand/snappy/snappy.bus-name-docs
Merge into: lp:~snappy-dev/snappy/snappy-moved-to-github
Diff against target: 87 lines (+24/-6)
2 files modified
docs/frameworks.md (+18/-1)
docs/meta.md (+6/-5)
To merge this branch: bzr merge lp:~jdstrand/snappy/snappy.bus-name-docs
Reviewer Review Type Date Requested Status
Jamie Strandboge (community) Approve
Review via email: mp+258894@code.launchpad.net

Description of the change

docs/frameworks.md: discuss `bus-name`
docs/meta.md:
- whitespace
- reference frameworks.md in bus-name

To post a comment you must log in.
Revision history for this message
Michael Terry (mterry) :
453. By Jamie Strandboge

merge from trunk

454. By Jamie Strandboge

docs/frameworks.md: quote vendor

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Per irc discussion with mterry, after fixing the quoting, it's ok.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'docs/frameworks.md'
2--- docs/frameworks.md 2015-04-23 15:07:47 +0000
3+++ docs/frameworks.md 2015-05-12 17:39:46 +0000
4@@ -65,15 +65,17 @@
5 ## Usage
6 ### framework yaml
7
8-For frameworks, meta/package.yaml should contain something like:
9+For frameworks, meta/package.yaml might contain something like:
10
11 name: foo
12 version: 1.1.234
13+ vendor: "Some Person <some.person@example.com>"
14 type: framework
15 services:
16 - name: bar
17 description: "desc for bar service"
18 start: bin/bar
19+ bus-name: com.example.foo
20 binaries:
21 - name: bin/baz
22 description: "desc for baz binary"
23@@ -82,6 +84,21 @@
24
25 * `type: framework` - defines the type of snap this is
26
27+#### DBus connection name
28+For framework services that provide a DBus interface, use `bus-name` to specify
29+the DBus connection name the service will bind to on the system bus (only
30+`^[A-Za-z0-9][A-Za-z0-9_-]*(\.[A-Za-z0-9][A-Za-z0-9_-]*)+$` is allowed). To
31+preserve coinstallability, the `bus-name` should typically use the form of one
32+of the following: `<name>`, `<name>.<service name>`, `<reverse domain>.<name>`
33+or `<reverse domain>.<name>.<service name>`. In the above yaml, any of the
34+following can be used:
35+
36+* `bus-name: foo`
37+* `bus-name: foo.bar`
38+* `bus-name: com.example.foo`
39+* `bus-name: com.example.foo.bar`
40+
41+#### Security policy
42 Frameworks will typically need specialized security policy. See `security.md`
43 for details.
44
45
46=== modified file 'docs/meta.md'
47--- docs/meta.md 2015-04-22 13:42:03 +0000
48+++ docs/meta.md 2015-05-12 17:39:46 +0000
49@@ -1,7 +1,7 @@
50 # Package metadata
51
52 This document describes the meta data of a snappy package. All files
53-are located under the `meta/` directory.
54+are located under the `meta/` directory.
55
56 The following files are supported:
57
58@@ -50,7 +50,7 @@
59 * `caps`: (optional) list of additional security policies to add.
60 See `security.md` for details
61 * `security-template`: (optional) alternate security template to use
62- instead of `default`. See `security.md` for details
63+ instead of `default`. See `security.md` for details
64 * `security-override`: (optional) high level overrides to use when
65 `security-template` and `caps` are not
66 sufficient. See security.md for details
67@@ -68,7 +68,8 @@
68 * `port`: (optional) see above
69 * `negotiable`: (optional) see above
70 * `bus-name`: (optional) message bus connection name for the service.
71- May only be specified for snaps of 'type: framework' (see above).
72+ May only be specified for snaps of 'type: framework' (see above). See
73+ frameworks.md for details.
74
75 * `binaries`: the binaries (executables) that the snap provides
76 * `name`: (required) the name of the binary, the user will be able to
77@@ -78,8 +79,8 @@
78 * `caps`: (optional) see entry in `services` (above)
79 * `security-template`: (optional) see entry in `services` (above)
80 * `security-override`: (optional) see entry in `services` (above)
81- * `security-policy`: (optional) see entry in `services` (above)
82-
83+ * `security-policy`: (optional) see entry in `services` (above)
84+
85 ## license.txt
86
87 A license text that the user must accept before the snap can be

Subscribers

People subscribed via source and target branches