ymdp 0.9.2 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -1
- data/VERSION +1 -1
- data/doc/ActionView.html +175 -0
- data/doc/ActionView/Helpers.html +175 -0
- data/doc/ActionView/Helpers/TagHelper.html +439 -0
- data/doc/Application.html +295 -0
- data/doc/LICENSE.html +158 -0
- data/doc/Object.html +218 -0
- data/doc/README_rdoc.html +147 -0
- data/doc/YMDP.html +232 -0
- data/doc/YMDP/ApplicationView.html +563 -0
- data/doc/YMDP/AssetTagHelper.html +235 -0
- data/doc/YMDP/Base.html +560 -0
- data/doc/YMDP/Compiler.html +178 -0
- data/doc/YMDP/Compiler/Base.html +1181 -0
- data/doc/YMDP/Compiler/Domains.html +493 -0
- data/doc/YMDP/Compiler/Options.html +265 -0
- data/doc/YMDP/Compiler/Template.html +175 -0
- data/doc/YMDP/Compiler/Template/Base.html +911 -0
- data/doc/YMDP/Compiler/Template/CoffeeScript.html +236 -0
- data/doc/YMDP/Compiler/Template/JavaScript.html +237 -0
- data/doc/YMDP/Compiler/Template/View.html +495 -0
- data/doc/YMDP/Compiler/Template/YRB.html +469 -0
- data/doc/YMDP/Configuration.html +175 -0
- data/doc/YMDP/Configuration/Base.html +426 -0
- data/doc/YMDP/Configuration/Config.html +553 -0
- data/doc/YMDP/Configuration/Servers.html +265 -0
- data/doc/YMDP/Configuration/Setter.html +580 -0
- data/doc/YMDP/FormTagHelper.html +298 -0
- data/doc/YMDP/GitHelper.html +298 -0
- data/doc/YMDP/LinkTagHelper.html +299 -0
- data/doc/YMDP/View.html +239 -0
- data/doc/created.rid +18 -0
- data/doc/images/add.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +134 -0
- data/doc/js/darkfish.js +153 -0
- data/doc/js/jquery.js +18 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/search.js +94 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/searcher.js +228 -0
- data/doc/rdoc.css +543 -0
- data/doc/table_of_contents.html +401 -0
- data/lib/ymdp/compiler/template.rb +5 -1
- data/lib/ymdp/view/application_view.rb +10 -5
- data/ymdp.gemspec +69 -2
- metadata +120 -42
@@ -0,0 +1,265 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>class YMDP::Configuration::Servers - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "../../";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="../../js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="../../js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="../../js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="../../js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="../../js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="class">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="../../index.html">Home</a>
|
28
|
+
<a href="../../table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="../../table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
<div id="file-metadata">
|
47
|
+
<nav id="file-list-section" class="section">
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
49
|
+
<ul>
|
50
|
+
<li>lib/ymdp/configuration/config.rb
|
51
|
+
</ul>
|
52
|
+
</nav>
|
53
|
+
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div id="class-metadata">
|
58
|
+
|
59
|
+
<nav id="parent-class-section" class="section">
|
60
|
+
<h3 class="section-header">Parent</h3>
|
61
|
+
|
62
|
+
<p class="link"><a href="Base.html">YMDP::Configuration::Base</a>
|
63
|
+
|
64
|
+
</nav>
|
65
|
+
|
66
|
+
|
67
|
+
<!-- Method Quickref -->
|
68
|
+
<nav id="method-list-section" class="section">
|
69
|
+
<h3 class="section-header">Methods</h3>
|
70
|
+
|
71
|
+
<ul class="link-list">
|
72
|
+
|
73
|
+
<li><a href="#method-c-new">::new</a>
|
74
|
+
|
75
|
+
<li><a href="#method-i-servers">#servers</a>
|
76
|
+
|
77
|
+
</ul>
|
78
|
+
</nav>
|
79
|
+
|
80
|
+
</div>
|
81
|
+
|
82
|
+
<div id="project-metadata">
|
83
|
+
<nav id="fileindex-section" class="section project-section">
|
84
|
+
<h3 class="section-header">Pages</h3>
|
85
|
+
|
86
|
+
<ul>
|
87
|
+
|
88
|
+
<li class="file"><a href="../../LICENSE.html">LICENSE</a>
|
89
|
+
|
90
|
+
<li class="file"><a href="../../README_rdoc.html">README</a>
|
91
|
+
|
92
|
+
</ul>
|
93
|
+
</nav>
|
94
|
+
|
95
|
+
<nav id="classindex-section" class="section project-section">
|
96
|
+
<h3 class="section-header">Class and Module Index</h3>
|
97
|
+
|
98
|
+
<ul class="link-list">
|
99
|
+
|
100
|
+
<li><a href="../../YMDP.html">YMDP</a>
|
101
|
+
|
102
|
+
<li><a href="../../YMDP/ApplicationView.html">YMDP::ApplicationView</a>
|
103
|
+
|
104
|
+
<li><a href="../../YMDP/AssetTagHelper.html">YMDP::AssetTagHelper</a>
|
105
|
+
|
106
|
+
<li><a href="../../YMDP/Base.html">YMDP::Base</a>
|
107
|
+
|
108
|
+
<li><a href="../../YMDP/Compiler.html">YMDP::Compiler</a>
|
109
|
+
|
110
|
+
<li><a href="../../YMDP/Compiler/Base.html">YMDP::Compiler::Base</a>
|
111
|
+
|
112
|
+
<li><a href="../../YMDP/Compiler/Domains.html">YMDP::Compiler::Domains</a>
|
113
|
+
|
114
|
+
<li><a href="../../YMDP/Compiler/Options.html">YMDP::Compiler::Options</a>
|
115
|
+
|
116
|
+
<li><a href="../../YMDP/Compiler/Template.html">YMDP::Compiler::Template</a>
|
117
|
+
|
118
|
+
<li><a href="../../YMDP/Compiler/Template/Base.html">YMDP::Compiler::Template::Base</a>
|
119
|
+
|
120
|
+
<li><a href="../../YMDP/Compiler/Template/CoffeeScript.html">YMDP::Compiler::Template::CoffeeScript</a>
|
121
|
+
|
122
|
+
<li><a href="../../YMDP/Compiler/Template/JavaScript.html">YMDP::Compiler::Template::JavaScript</a>
|
123
|
+
|
124
|
+
<li><a href="../../YMDP/Compiler/Template/View.html">YMDP::Compiler::Template::View</a>
|
125
|
+
|
126
|
+
<li><a href="../../YMDP/Compiler/Template/YRB.html">YMDP::Compiler::Template::YRB</a>
|
127
|
+
|
128
|
+
<li><a href="../../YMDP/Configuration.html">YMDP::Configuration</a>
|
129
|
+
|
130
|
+
<li><a href="../../YMDP/Configuration/Base.html">YMDP::Configuration::Base</a>
|
131
|
+
|
132
|
+
<li><a href="../../YMDP/Configuration/Config.html">YMDP::Configuration::Config</a>
|
133
|
+
|
134
|
+
<li><a href="../../YMDP/Configuration/Servers.html">YMDP::Configuration::Servers</a>
|
135
|
+
|
136
|
+
<li><a href="../../YMDP/Configuration/Setter.html">YMDP::Configuration::Setter</a>
|
137
|
+
|
138
|
+
<li><a href="../../YMDP/FormTagHelper.html">YMDP::FormTagHelper</a>
|
139
|
+
|
140
|
+
<li><a href="../../YMDP/GitHelper.html">YMDP::GitHelper</a>
|
141
|
+
|
142
|
+
<li><a href="../../YMDP/LinkTagHelper.html">YMDP::LinkTagHelper</a>
|
143
|
+
|
144
|
+
<li><a href="../../YMDP/View.html">YMDP::View</a>
|
145
|
+
|
146
|
+
<li><a href="../../ActionView.html">ActionView</a>
|
147
|
+
|
148
|
+
<li><a href="../../ActionView/Helpers.html">ActionView::Helpers</a>
|
149
|
+
|
150
|
+
<li><a href="../../ActionView/Helpers/TagHelper.html">ActionView::Helpers::TagHelper</a>
|
151
|
+
|
152
|
+
<li><a href="../../Application.html">Application</a>
|
153
|
+
|
154
|
+
<li><a href="../../Object.html">Object</a>
|
155
|
+
|
156
|
+
</ul>
|
157
|
+
</nav>
|
158
|
+
|
159
|
+
</div>
|
160
|
+
</nav>
|
161
|
+
|
162
|
+
<div id="documentation">
|
163
|
+
<h1 class="class">class YMDP::Configuration::Servers</h1>
|
164
|
+
|
165
|
+
<div id="description" class="description">
|
166
|
+
|
167
|
+
</div><!-- description -->
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
<!-- Methods -->
|
182
|
+
|
183
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
184
|
+
<h3 class="section-header">Public Class Methods</h3>
|
185
|
+
|
186
|
+
|
187
|
+
<div id="method-c-new" class="method-detail ">
|
188
|
+
|
189
|
+
<div class="method-heading">
|
190
|
+
<span class="method-name">new</span><span
|
191
|
+
class="method-args">()</span>
|
192
|
+
<span class="method-click-advice">click to toggle source</span>
|
193
|
+
</div>
|
194
|
+
|
195
|
+
|
196
|
+
<div class="method-description">
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
<div class="method-source-code" id="new-source">
|
203
|
+
<pre><span class="ruby-comment"># File lib/ymdp/configuration/config.rb, line 148</span>
|
204
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>
|
205
|
+
<span class="ruby-keyword">super</span>(<span class="ruby-node">"#{CONFIG_PATH}/servers.yml"</span>, <span class="ruby-string">"servers"</span>)
|
206
|
+
<span class="ruby-keyword">end</span></pre>
|
207
|
+
</div><!-- new-source -->
|
208
|
+
|
209
|
+
</div>
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
</div><!-- new-method -->
|
215
|
+
|
216
|
+
|
217
|
+
</section><!-- public-class-method-details -->
|
218
|
+
|
219
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
220
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
221
|
+
|
222
|
+
|
223
|
+
<div id="method-i-servers" class="method-detail ">
|
224
|
+
|
225
|
+
<div class="method-heading">
|
226
|
+
<span class="method-name">servers</span><span
|
227
|
+
class="method-args">()</span>
|
228
|
+
<span class="method-click-advice">click to toggle source</span>
|
229
|
+
</div>
|
230
|
+
|
231
|
+
|
232
|
+
<div class="method-description">
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
<div class="method-source-code" id="servers-source">
|
239
|
+
<pre><span class="ruby-comment"># File lib/ymdp/configuration/config.rb, line 152</span>
|
240
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">servers</span>
|
241
|
+
<span class="ruby-identifier">options</span>
|
242
|
+
<span class="ruby-keyword">end</span></pre>
|
243
|
+
</div><!-- servers-source -->
|
244
|
+
|
245
|
+
</div>
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
</div><!-- servers-method -->
|
251
|
+
|
252
|
+
|
253
|
+
</section><!-- public-instance-method-details -->
|
254
|
+
|
255
|
+
</section><!-- 5Buntitled-5D -->
|
256
|
+
|
257
|
+
</div><!-- documentation -->
|
258
|
+
|
259
|
+
|
260
|
+
<footer id="validator-badges">
|
261
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
262
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
263
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
264
|
+
</footer>
|
265
|
+
|
@@ -0,0 +1,580 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>class YMDP::Configuration::Setter - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "../../";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="../../js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="../../js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="../../js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="../../js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="../../js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="class">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="../../index.html">Home</a>
|
28
|
+
<a href="../../table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="../../table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
<div id="file-metadata">
|
47
|
+
<nav id="file-list-section" class="section">
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
49
|
+
<ul>
|
50
|
+
<li>lib/ymdp/configuration/config.rb
|
51
|
+
</ul>
|
52
|
+
</nav>
|
53
|
+
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div id="class-metadata">
|
58
|
+
|
59
|
+
<nav id="parent-class-section" class="section">
|
60
|
+
<h3 class="section-header">Parent</h3>
|
61
|
+
|
62
|
+
<p class="link"><a href="../../Object.html">Object</a>
|
63
|
+
|
64
|
+
</nav>
|
65
|
+
|
66
|
+
|
67
|
+
<!-- Method Quickref -->
|
68
|
+
<nav id="method-list-section" class="section">
|
69
|
+
<h3 class="section-header">Methods</h3>
|
70
|
+
|
71
|
+
<ul class="link-list">
|
72
|
+
|
73
|
+
<li><a href="#method-i-add_content_variable">#add_content_variable</a>
|
74
|
+
|
75
|
+
<li><a href="#method-i-add_path">#add_path</a>
|
76
|
+
|
77
|
+
<li><a href="#method-i-jquery">#jquery</a>
|
78
|
+
|
79
|
+
<li><a href="#method-i-load_content_variables">#load_content_variables</a>
|
80
|
+
|
81
|
+
<li><a href="#method-i-prototype">#prototype</a>
|
82
|
+
|
83
|
+
</ul>
|
84
|
+
</nav>
|
85
|
+
|
86
|
+
</div>
|
87
|
+
|
88
|
+
<div id="project-metadata">
|
89
|
+
<nav id="fileindex-section" class="section project-section">
|
90
|
+
<h3 class="section-header">Pages</h3>
|
91
|
+
|
92
|
+
<ul>
|
93
|
+
|
94
|
+
<li class="file"><a href="../../LICENSE.html">LICENSE</a>
|
95
|
+
|
96
|
+
<li class="file"><a href="../../README_rdoc.html">README</a>
|
97
|
+
|
98
|
+
</ul>
|
99
|
+
</nav>
|
100
|
+
|
101
|
+
<nav id="classindex-section" class="section project-section">
|
102
|
+
<h3 class="section-header">Class and Module Index</h3>
|
103
|
+
|
104
|
+
<ul class="link-list">
|
105
|
+
|
106
|
+
<li><a href="../../YMDP.html">YMDP</a>
|
107
|
+
|
108
|
+
<li><a href="../../YMDP/ApplicationView.html">YMDP::ApplicationView</a>
|
109
|
+
|
110
|
+
<li><a href="../../YMDP/AssetTagHelper.html">YMDP::AssetTagHelper</a>
|
111
|
+
|
112
|
+
<li><a href="../../YMDP/Base.html">YMDP::Base</a>
|
113
|
+
|
114
|
+
<li><a href="../../YMDP/Compiler.html">YMDP::Compiler</a>
|
115
|
+
|
116
|
+
<li><a href="../../YMDP/Compiler/Base.html">YMDP::Compiler::Base</a>
|
117
|
+
|
118
|
+
<li><a href="../../YMDP/Compiler/Domains.html">YMDP::Compiler::Domains</a>
|
119
|
+
|
120
|
+
<li><a href="../../YMDP/Compiler/Options.html">YMDP::Compiler::Options</a>
|
121
|
+
|
122
|
+
<li><a href="../../YMDP/Compiler/Template.html">YMDP::Compiler::Template</a>
|
123
|
+
|
124
|
+
<li><a href="../../YMDP/Compiler/Template/Base.html">YMDP::Compiler::Template::Base</a>
|
125
|
+
|
126
|
+
<li><a href="../../YMDP/Compiler/Template/CoffeeScript.html">YMDP::Compiler::Template::CoffeeScript</a>
|
127
|
+
|
128
|
+
<li><a href="../../YMDP/Compiler/Template/JavaScript.html">YMDP::Compiler::Template::JavaScript</a>
|
129
|
+
|
130
|
+
<li><a href="../../YMDP/Compiler/Template/View.html">YMDP::Compiler::Template::View</a>
|
131
|
+
|
132
|
+
<li><a href="../../YMDP/Compiler/Template/YRB.html">YMDP::Compiler::Template::YRB</a>
|
133
|
+
|
134
|
+
<li><a href="../../YMDP/Configuration.html">YMDP::Configuration</a>
|
135
|
+
|
136
|
+
<li><a href="../../YMDP/Configuration/Base.html">YMDP::Configuration::Base</a>
|
137
|
+
|
138
|
+
<li><a href="../../YMDP/Configuration/Config.html">YMDP::Configuration::Config</a>
|
139
|
+
|
140
|
+
<li><a href="../../YMDP/Configuration/Servers.html">YMDP::Configuration::Servers</a>
|
141
|
+
|
142
|
+
<li><a href="../../YMDP/Configuration/Setter.html">YMDP::Configuration::Setter</a>
|
143
|
+
|
144
|
+
<li><a href="../../YMDP/FormTagHelper.html">YMDP::FormTagHelper</a>
|
145
|
+
|
146
|
+
<li><a href="../../YMDP/GitHelper.html">YMDP::GitHelper</a>
|
147
|
+
|
148
|
+
<li><a href="../../YMDP/LinkTagHelper.html">YMDP::LinkTagHelper</a>
|
149
|
+
|
150
|
+
<li><a href="../../YMDP/View.html">YMDP::View</a>
|
151
|
+
|
152
|
+
<li><a href="../../ActionView.html">ActionView</a>
|
153
|
+
|
154
|
+
<li><a href="../../ActionView/Helpers.html">ActionView::Helpers</a>
|
155
|
+
|
156
|
+
<li><a href="../../ActionView/Helpers/TagHelper.html">ActionView::Helpers::TagHelper</a>
|
157
|
+
|
158
|
+
<li><a href="../../Application.html">Application</a>
|
159
|
+
|
160
|
+
<li><a href="../../Object.html">Object</a>
|
161
|
+
|
162
|
+
</ul>
|
163
|
+
</nav>
|
164
|
+
|
165
|
+
</div>
|
166
|
+
</nav>
|
167
|
+
|
168
|
+
<div id="documentation">
|
169
|
+
<h1 class="class">class YMDP::Configuration::Setter</h1>
|
170
|
+
|
171
|
+
<div id="description" class="description">
|
172
|
+
|
173
|
+
<p>Provides an interface to set global configuration variables inside a block.</p>
|
174
|
+
|
175
|
+
<p>Used by the <a href="../Base.html">YMDP::Base</a> <code>configure</code>
|
176
|
+
method.</p>
|
177
|
+
|
178
|
+
<h2 id="label-Examples">Examples</h2>
|
179
|
+
|
180
|
+
<p>In the following example, the <code>config</code> variable inside the block
|
181
|
+
is an instance of <a href="Setter.html">YMDP::Configuration::Setter</a>.</p>
|
182
|
+
|
183
|
+
<pre class="ruby"><span class="ruby-constant">YMDP</span><span class="ruby-operator">::</span><span class="ruby-constant">Base</span>.<span class="ruby-identifier">configure</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">config</span><span class="ruby-operator">|</span>
|
184
|
+
<span class="ruby-identifier">config</span>.<span class="ruby-identifier">username</span> = <span class="ruby-string">'malreynolds'</span>
|
185
|
+
<span class="ruby-identifier">config</span>.<span class="ruby-identifier">load_content_variables</span>(<span class="ruby-string">'content'</span>)
|
186
|
+
<span class="ruby-keyword">end</span>
|
187
|
+
</pre>
|
188
|
+
|
189
|
+
<p>It is then up to <a
|
190
|
+
href="../Base.html#method-c-configure">YMDP::Base.configure</a> to take the
|
191
|
+
<a href="Setter.html">Setter</a> instance and set all the appropriate
|
192
|
+
options based on its settings.</p>
|
193
|
+
|
194
|
+
</div><!-- description -->
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
<!-- Attributes -->
|
208
|
+
<section id="attribute-method-details" class="method-section section">
|
209
|
+
<h3 class="section-header">Attributes</h3>
|
210
|
+
|
211
|
+
|
212
|
+
<div id="attribute-i-compress" class="method-detail">
|
213
|
+
<div class="method-heading attribute-method-heading">
|
214
|
+
<span class="method-name">compress</span><span
|
215
|
+
class="attribute-access-type">[RW]</span>
|
216
|
+
</div>
|
217
|
+
|
218
|
+
<div class="method-description">
|
219
|
+
|
220
|
+
<p>Hash value containing settings which tell the application when to compress
|
221
|
+
CSS and JavaScript.</p>
|
222
|
+
|
223
|
+
</div>
|
224
|
+
</div>
|
225
|
+
|
226
|
+
<div id="attribute-i-content_variables" class="method-detail">
|
227
|
+
<div class="method-heading attribute-method-heading">
|
228
|
+
<span class="method-name">content_variables</span><span
|
229
|
+
class="attribute-access-type">[RW]</span>
|
230
|
+
</div>
|
231
|
+
|
232
|
+
<div class="method-description">
|
233
|
+
|
234
|
+
<p>Hash value containing content variables which are made available to the
|
235
|
+
views at build time.</p>
|
236
|
+
|
237
|
+
</div>
|
238
|
+
</div>
|
239
|
+
|
240
|
+
<div id="attribute-i-default_server" class="method-detail">
|
241
|
+
<div class="method-heading attribute-method-heading">
|
242
|
+
<span class="method-name">default_server</span><span
|
243
|
+
class="attribute-access-type">[RW]</span>
|
244
|
+
</div>
|
245
|
+
|
246
|
+
<div class="method-description">
|
247
|
+
|
248
|
+
<p>String value containing the <a
|
249
|
+
href="Setter.html#attribute-i-default_server">#default_server</a> name.
|
250
|
+
Matches the related entry in the <code>servers</code> hash to define which
|
251
|
+
server is the default for rake tasks such as <code>deploy</code>.</p>
|
252
|
+
|
253
|
+
</div>
|
254
|
+
</div>
|
255
|
+
|
256
|
+
<div id="attribute-i-external_assets" class="method-detail">
|
257
|
+
<div class="method-heading attribute-method-heading">
|
258
|
+
<span class="method-name">external_assets</span><span
|
259
|
+
class="attribute-access-type">[RW]</span>
|
260
|
+
</div>
|
261
|
+
|
262
|
+
<div class="method-description">
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
</div>
|
267
|
+
</div>
|
268
|
+
|
269
|
+
<div id="attribute-i-growl" class="method-detail">
|
270
|
+
<div class="method-heading attribute-method-heading">
|
271
|
+
<span class="method-name">growl</span><span
|
272
|
+
class="attribute-access-type">[RW]</span>
|
273
|
+
</div>
|
274
|
+
|
275
|
+
<div class="method-description">
|
276
|
+
|
277
|
+
<p>Boolean value which sets whether Growl notifications should be used when
|
278
|
+
compiling and deploying the application.</p>
|
279
|
+
|
280
|
+
</div>
|
281
|
+
</div>
|
282
|
+
|
283
|
+
<div id="attribute-i-host" class="method-detail">
|
284
|
+
<div class="method-heading attribute-method-heading">
|
285
|
+
<span class="method-name">host</span><span
|
286
|
+
class="attribute-access-type">[RW]</span>
|
287
|
+
</div>
|
288
|
+
|
289
|
+
<div class="method-description">
|
290
|
+
|
291
|
+
<p>Host name for the website backend of this application.</p>
|
292
|
+
|
293
|
+
</div>
|
294
|
+
</div>
|
295
|
+
|
296
|
+
<div id="attribute-i-javascript_library" class="method-detail">
|
297
|
+
<div class="method-heading attribute-method-heading">
|
298
|
+
<span class="method-name">javascript_library</span><span
|
299
|
+
class="attribute-access-type">[RW]</span>
|
300
|
+
</div>
|
301
|
+
|
302
|
+
<div class="method-description">
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
</div>
|
307
|
+
</div>
|
308
|
+
|
309
|
+
<div id="attribute-i-jslint_settings" class="method-detail">
|
310
|
+
<div class="method-heading attribute-method-heading">
|
311
|
+
<span class="method-name">jslint_settings</span><span
|
312
|
+
class="attribute-access-type">[RW]</span>
|
313
|
+
</div>
|
314
|
+
|
315
|
+
<div class="method-description">
|
316
|
+
|
317
|
+
<p><a href="../Configuration.html">Configuration</a> options for JSLint
|
318
|
+
JavaScript validator. Should be maintained in
|
319
|
+
<code>jslint_settings.yml</code>.</p>
|
320
|
+
|
321
|
+
</div>
|
322
|
+
</div>
|
323
|
+
|
324
|
+
<div id="attribute-i-password" class="method-detail">
|
325
|
+
<div class="method-heading attribute-method-heading">
|
326
|
+
<span class="method-name">password</span><span
|
327
|
+
class="attribute-access-type">[RW]</span>
|
328
|
+
</div>
|
329
|
+
|
330
|
+
<div class="method-description">
|
331
|
+
|
332
|
+
<p>String value containing the password used to communicate with the Yahoo!
|
333
|
+
Mail Development Platform to deploy the application.</p>
|
334
|
+
|
335
|
+
</div>
|
336
|
+
</div>
|
337
|
+
|
338
|
+
<div id="attribute-i-paths" class="method-detail">
|
339
|
+
<div class="method-heading attribute-method-heading">
|
340
|
+
<span class="method-name">paths</span><span
|
341
|
+
class="attribute-access-type">[RW]</span>
|
342
|
+
</div>
|
343
|
+
|
344
|
+
<div class="method-description">
|
345
|
+
|
346
|
+
<p>Hash value containing paths used by the application to locate its files.
|
347
|
+
This can be used to overwrite default settings.</p>
|
348
|
+
|
349
|
+
</div>
|
350
|
+
</div>
|
351
|
+
|
352
|
+
<div id="attribute-i-servers" class="method-detail">
|
353
|
+
<div class="method-heading attribute-method-heading">
|
354
|
+
<span class="method-name">servers</span><span
|
355
|
+
class="attribute-access-type">[RW]</span>
|
356
|
+
</div>
|
357
|
+
|
358
|
+
<div class="method-description">
|
359
|
+
|
360
|
+
<p>Hash value containing application data about the servers, such as their
|
361
|
+
asset and application IDs.</p>
|
362
|
+
|
363
|
+
</div>
|
364
|
+
</div>
|
365
|
+
|
366
|
+
<div id="attribute-i-username" class="method-detail">
|
367
|
+
<div class="method-heading attribute-method-heading">
|
368
|
+
<span class="method-name">username</span><span
|
369
|
+
class="attribute-access-type">[RW]</span>
|
370
|
+
</div>
|
371
|
+
|
372
|
+
<div class="method-description">
|
373
|
+
|
374
|
+
<p>String value containing the login used to communicate with the Yahoo! Mail
|
375
|
+
Development Platform to deploy the application.</p>
|
376
|
+
|
377
|
+
</div>
|
378
|
+
</div>
|
379
|
+
|
380
|
+
<div id="attribute-i-validate" class="method-detail">
|
381
|
+
<div class="method-heading attribute-method-heading">
|
382
|
+
<span class="method-name">validate</span><span
|
383
|
+
class="attribute-access-type">[RW]</span>
|
384
|
+
</div>
|
385
|
+
|
386
|
+
<div class="method-description">
|
387
|
+
|
388
|
+
<p>Hash value containing settings which tell the application when to validate
|
389
|
+
HTML and JavaScript.</p>
|
390
|
+
|
391
|
+
</div>
|
392
|
+
</div>
|
393
|
+
|
394
|
+
<div id="attribute-i-verbose" class="method-detail">
|
395
|
+
<div class="method-heading attribute-method-heading">
|
396
|
+
<span class="method-name">verbose</span><span
|
397
|
+
class="attribute-access-type">[RW]</span>
|
398
|
+
</div>
|
399
|
+
|
400
|
+
<div class="method-description">
|
401
|
+
|
402
|
+
<p>Boolean value which sets whether to output verbose messages or not.</p>
|
403
|
+
|
404
|
+
</div>
|
405
|
+
</div>
|
406
|
+
|
407
|
+
</section><!-- attribute-method-details -->
|
408
|
+
|
409
|
+
|
410
|
+
<!-- Methods -->
|
411
|
+
|
412
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
413
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
414
|
+
|
415
|
+
|
416
|
+
<div id="method-i-add_content_variable" class="method-detail ">
|
417
|
+
|
418
|
+
<div class="method-heading">
|
419
|
+
<span class="method-name">add_content_variable</span><span
|
420
|
+
class="method-args">(name, value)</span>
|
421
|
+
<span class="method-click-advice">click to toggle source</span>
|
422
|
+
</div>
|
423
|
+
|
424
|
+
|
425
|
+
<div class="method-description">
|
426
|
+
|
427
|
+
<p>Adds an entry to the <code>content_variables</code> hash.</p>
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
<div class="method-source-code" id="add_content_variable-source">
|
432
|
+
<pre><span class="ruby-comment"># File lib/ymdp/configuration/config.rb, line 85</span>
|
433
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">add_content_variable</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>)
|
434
|
+
<span class="ruby-ivar">@content_variables</span>[<span class="ruby-identifier">name</span>] = <span class="ruby-identifier">value</span>
|
435
|
+
<span class="ruby-keyword">end</span></pre>
|
436
|
+
</div><!-- add_content_variable-source -->
|
437
|
+
|
438
|
+
</div>
|
439
|
+
|
440
|
+
|
441
|
+
|
442
|
+
|
443
|
+
</div><!-- add_content_variable-method -->
|
444
|
+
|
445
|
+
|
446
|
+
<div id="method-i-add_path" class="method-detail ">
|
447
|
+
|
448
|
+
<div class="method-heading">
|
449
|
+
<span class="method-name">add_path</span><span
|
450
|
+
class="method-args">(name, value)</span>
|
451
|
+
<span class="method-click-advice">click to toggle source</span>
|
452
|
+
</div>
|
453
|
+
|
454
|
+
|
455
|
+
<div class="method-description">
|
456
|
+
|
457
|
+
<p>Adds an entry to the <code>paths</code> hash.</p>
|
458
|
+
|
459
|
+
|
460
|
+
|
461
|
+
<div class="method-source-code" id="add_path-source">
|
462
|
+
<pre><span class="ruby-comment"># File lib/ymdp/configuration/config.rb, line 79</span>
|
463
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">add_path</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>)
|
464
|
+
<span class="ruby-ivar">@paths</span>[<span class="ruby-identifier">name</span>] = <span class="ruby-identifier">value</span>
|
465
|
+
<span class="ruby-keyword">end</span></pre>
|
466
|
+
</div><!-- add_path-source -->
|
467
|
+
|
468
|
+
</div>
|
469
|
+
|
470
|
+
|
471
|
+
|
472
|
+
|
473
|
+
</div><!-- add_path-method -->
|
474
|
+
|
475
|
+
|
476
|
+
<div id="method-i-jquery" class="method-detail ">
|
477
|
+
|
478
|
+
<div class="method-heading">
|
479
|
+
<span class="method-name">jquery</span><span
|
480
|
+
class="method-args">()</span>
|
481
|
+
<span class="method-click-advice">click to toggle source</span>
|
482
|
+
</div>
|
483
|
+
|
484
|
+
|
485
|
+
<div class="method-description">
|
486
|
+
|
487
|
+
|
488
|
+
|
489
|
+
|
490
|
+
|
491
|
+
<div class="method-source-code" id="jquery-source">
|
492
|
+
<pre><span class="ruby-comment"># File lib/ymdp/configuration/config.rb, line 101</span>
|
493
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">jquery</span>
|
494
|
+
<span class="ruby-ivar">@javascript_library</span> = <span class="ruby-string">"jquery"</span>
|
495
|
+
<span class="ruby-keyword">end</span></pre>
|
496
|
+
</div><!-- jquery-source -->
|
497
|
+
|
498
|
+
</div>
|
499
|
+
|
500
|
+
|
501
|
+
|
502
|
+
|
503
|
+
</div><!-- jquery-method -->
|
504
|
+
|
505
|
+
|
506
|
+
<div id="method-i-load_content_variables" class="method-detail ">
|
507
|
+
|
508
|
+
<div class="method-heading">
|
509
|
+
<span class="method-name">load_content_variables</span><span
|
510
|
+
class="method-args">(filename)</span>
|
511
|
+
<span class="method-click-advice">click to toggle source</span>
|
512
|
+
</div>
|
513
|
+
|
514
|
+
|
515
|
+
<div class="method-description">
|
516
|
+
|
517
|
+
<p>Loads the <code>content_variables</code> hash from a Yaml file.</p>
|
518
|
+
|
519
|
+
|
520
|
+
|
521
|
+
<div class="method-source-code" id="load_content_variables-source">
|
522
|
+
<pre><span class="ruby-comment"># File lib/ymdp/configuration/config.rb, line 91</span>
|
523
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">load_content_variables</span>(<span class="ruby-identifier">filename</span>)
|
524
|
+
<span class="ruby-identifier">path</span> = <span class="ruby-node">"#{CONFIG_PATH}/#{filename}"</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp">%r\.yml$/</span>, <span class="ruby-string">""</span>)
|
525
|
+
<span class="ruby-identifier">path</span> = <span class="ruby-node">"#{path}.yml"</span>
|
526
|
+
<span class="ruby-ivar">@content_variables</span> = <span class="ruby-constant">YAML</span>.<span class="ruby-identifier">load_file</span>(<span class="ruby-identifier">path</span>)
|
527
|
+
<span class="ruby-keyword">end</span></pre>
|
528
|
+
</div><!-- load_content_variables-source -->
|
529
|
+
|
530
|
+
</div>
|
531
|
+
|
532
|
+
|
533
|
+
|
534
|
+
|
535
|
+
</div><!-- load_content_variables-method -->
|
536
|
+
|
537
|
+
|
538
|
+
<div id="method-i-prototype" class="method-detail ">
|
539
|
+
|
540
|
+
<div class="method-heading">
|
541
|
+
<span class="method-name">prototype</span><span
|
542
|
+
class="method-args">()</span>
|
543
|
+
<span class="method-click-advice">click to toggle source</span>
|
544
|
+
</div>
|
545
|
+
|
546
|
+
|
547
|
+
<div class="method-description">
|
548
|
+
|
549
|
+
|
550
|
+
|
551
|
+
|
552
|
+
|
553
|
+
<div class="method-source-code" id="prototype-source">
|
554
|
+
<pre><span class="ruby-comment"># File lib/ymdp/configuration/config.rb, line 97</span>
|
555
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">prototype</span>
|
556
|
+
<span class="ruby-ivar">@javascript_library</span> = <span class="ruby-string">"prototype"</span>
|
557
|
+
<span class="ruby-keyword">end</span></pre>
|
558
|
+
</div><!-- prototype-source -->
|
559
|
+
|
560
|
+
</div>
|
561
|
+
|
562
|
+
|
563
|
+
|
564
|
+
|
565
|
+
</div><!-- prototype-method -->
|
566
|
+
|
567
|
+
|
568
|
+
</section><!-- public-instance-method-details -->
|
569
|
+
|
570
|
+
</section><!-- 5Buntitled-5D -->
|
571
|
+
|
572
|
+
</div><!-- documentation -->
|
573
|
+
|
574
|
+
|
575
|
+
<footer id="validator-badges">
|
576
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
577
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
578
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
579
|
+
</footer>
|
580
|
+
|