Thin_Upstart 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +15 -6
- data/lib/Thin_Upstart/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -59,14 +59,27 @@ Usage: Shell
|
|
59
59
|
--templates ./templates
|
60
60
|
--yml config/thin.yml
|
61
61
|
--output ./output
|
62
|
+
--kv " custom_1 => val_1 , custom_2 => val_2 , ... "
|
62
63
|
--trash my/conf/dir # When used, all other options are ignored.
|
63
64
|
--help
|
64
65
|
|
65
|
-
|
66
|
+
**Note:** Be sure to use quotation marks when using file globs or --kv:
|
66
67
|
|
67
68
|
Thin_Upstart --templates "template/*.conf"
|
68
69
|
Thin_Upstart --yml "config/*.yml"
|
70
|
+
Thin_Upstart --kv " custom_1 => val_1 , custom_2 => val_2 , ... "
|
69
71
|
|
72
|
+
When using the --kv option on the shell, you are limited to using the above format.
|
73
|
+
This means you can put any values using commas:
|
74
|
+
|
75
|
+
Thin_Upstart --kv " custom_1 => val 1 , custom_2 => val 2 "
|
76
|
+
|
77
|
+
# This hash is generated based on the above line:
|
78
|
+
# {
|
79
|
+
# 'custom_1' => "val 1",
|
80
|
+
# 'custom_2' => 'val 2'
|
81
|
+
# }
|
82
|
+
|
70
83
|
Usage: Mustache Template
|
71
84
|
-----
|
72
85
|
In your Mustache templates, you have access to the following values:
|
@@ -77,6 +90,7 @@ In your Mustache templates, you have access to the following values:
|
|
77
90
|
* **app\_path:** Full path to app.
|
78
91
|
* **yml\_path:** Full path to .yml file.
|
79
92
|
* **apps\_dir:** Full path to directory of apps.
|
93
|
+
* **your custom values:** Use method :kv with an argument of a hash.
|
80
94
|
|
81
95
|
You can use Mustache values in the file names of the templates.
|
82
96
|
For example:
|
@@ -84,11 +98,6 @@ For example:
|
|
84
98
|
* my/template/dir/**{{name}}**.conf
|
85
99
|
* my/template/dir/**{{name}}**-**{{app}}**.conf
|
86
100
|
|
87
|
-
The files are generated are:
|
88
|
-
|
89
|
-
* my/template/dir/My-Apps.conf
|
90
|
-
* my/template/dir/My-Apps-Hi.conf
|
91
|
-
|
92
101
|
Run Tests
|
93
102
|
---------
|
94
103
|
|
data/lib/Thin_Upstart/version.rb
CHANGED