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.
Files changed (3) hide show
  1. data/README.md +15 -6
  2. data/lib/Thin_Upstart/version.rb +1 -1
  3. 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
- *Note:* Be sure to use quotation marks when using file globs:
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
 
@@ -1,3 +1,3 @@
1
1
  class Thin_Upstart
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Thin_Upstart
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: