promotion 1.3.7 → 1.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +1 -1
- data/lib/promotion/generator/rcconf.rb +8 -6
- metadata +4 -4
data/CHANGELOG
CHANGED
|
@@ -31,12 +31,14 @@ module Rcconf
|
|
|
31
31
|
ap <=> bp
|
|
32
32
|
}
|
|
33
33
|
pkgScripts = []
|
|
34
|
-
daemonSpecs.each { |spec|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
daemonSpecs.each { |spec| # allow for multiple daemons in a spec
|
|
35
|
+
spec.each_element("Daemon") { |d|
|
|
36
|
+
# Name defaults to the name of the spec, but may be overridden by the optional Name attribute
|
|
37
|
+
name = d.attributes["Name"] || spec.attributes["Name"]
|
|
38
|
+
flags = d.attributes["Flags"]
|
|
39
|
+
contents << "#{name}_flags=\"#{flags}\" \n"
|
|
40
|
+
pkgScripts << name
|
|
41
|
+
}
|
|
40
42
|
}
|
|
41
43
|
contents << "# rc.d(8) packages scripts\n"
|
|
42
44
|
contents << "# started in the specified order and stopped in reverse order\n"
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: promotion
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 11
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 3
|
|
9
|
-
-
|
|
10
|
-
version: 1.3.
|
|
9
|
+
- 8
|
|
10
|
+
version: 1.3.8
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Richard Kernahan
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2012-09-
|
|
18
|
+
date: 2012-09-30 00:00:00 Z
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
21
21
|
name: log4r
|