ttycoke 0.2.0
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/.gitignore +16 -0
- data/.togglerc +10 -0
- data/.tork.rb +2 -0
- data/.travis.yml +6 -0
- data/LICENSE +21 -0
- data/README.md +150 -0
- data/Rakefile +25 -0
- data/bin/ttycoke +10 -0
- data/config/config.yaml +5 -0
- data/config/ttycoke.d/id.yaml +4 -0
- data/config/ttycoke.d/lsmod.yaml +3 -0
- data/config/ttycoke.d/tail_focus.yaml +14 -0
- data/config/ttycoke.d/tail_tork_logs.yaml +26 -0
- data/config/ttycoke.d/top.yaml +8 -0
- data/doc/TTYCoke/ANSI.html +598 -0
- data/doc/TTYCoke/ANSIColor.html +586 -0
- data/doc/TTYCoke/CLI.html +242 -0
- data/doc/TTYCoke/Config/Configuration.html +210 -0
- data/doc/TTYCoke/Config.html +347 -0
- data/doc/TTYCoke/Errors/CustomizationFailed.html +135 -0
- data/doc/TTYCoke/Errors/FallbackError.html +216 -0
- data/doc/TTYCoke/Errors/ProgramNotFoundError.html +216 -0
- data/doc/TTYCoke/Errors/TTYCokeError.html +206 -0
- data/doc/TTYCoke/Errors/TTYCokeTypeError.html +216 -0
- data/doc/TTYCoke/Errors/YamlSyntaxError.html +216 -0
- data/doc/TTYCoke/Errors.html +106 -0
- data/doc/TTYCoke/LineParser.html +210 -0
- data/doc/TTYCoke/Log.html +391 -0
- data/doc/TTYCoke/Parser.html +210 -0
- data/doc/TTYCoke/Platform.html +398 -0
- data/doc/TTYCoke/Run.html +198 -0
- data/doc/TTYCoke/TTYCokeLogFormat.html +204 -0
- data/doc/TTYCoke/Version.html +136 -0
- data/doc/TTYCoke.html +110 -0
- data/doc/_index.html +279 -0
- data/doc/class_list.html +47 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +55 -0
- data/doc/css/style.css +322 -0
- data/doc/file.README.html +153 -0
- data/doc/file_list.html +49 -0
- data/doc/frames.html +13 -0
- data/doc/index.html +153 -0
- data/doc/js/app.js +205 -0
- data/doc/js/full_list.js +167 -0
- data/doc/js/jquery.js +16 -0
- data/doc/method_list.html +238 -0
- data/doc/top-level-namespace.html +130 -0
- data/lib/ttycoke/ansi.rb +127 -0
- data/lib/ttycoke/cli.rb +33 -0
- data/lib/ttycoke/config.rb +39 -0
- data/lib/ttycoke/errors.rb +40 -0
- data/lib/ttycoke/import.rb +72 -0
- data/lib/ttycoke/log.rb +84 -0
- data/lib/ttycoke/parser.rb +59 -0
- data/lib/ttycoke/platform.rb +33 -0
- data/lib/ttycoke/run.rb +59 -0
- data/lib/ttycoke/version.rb +10 -0
- data/lib/ttycoke.rb +15 -0
- data/test/data/ansi_lines.yaml +12 -0
- data/test/data/config.yaml +4 -0
- data/test/data/syntax_error_config.yaml +6 -0
- data/test/data/ttycoke.d/id.yaml +4 -0
- data/test/data/ttycoke.d/lsmod.yaml +3 -0
- data/test/data/ttycoke.d/tail_focus.yaml +14 -0
- data/test/data/ttycoke.d/tail_tork_logs.yaml +26 -0
- data/test/data/ttycoke.d/top.yaml +8 -0
- data/test/test_helper.rb +14 -0
- data/test/ttycoke/test_ansi.rb +89 -0
- data/test/ttycoke/test_cli.rb +8 -0
- data/test/ttycoke/test_config.rb +23 -0
- data/test/ttycoke/test_log.rb +22 -0
- data/test/ttycoke/test_parser.rb +24 -0
- data/ttycoke.gemspec +16 -0
- metadata +120 -0
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
4
|
+
<head>
|
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
6
|
+
<title>
|
|
7
|
+
Class: TTYCoke::Run
|
|
8
|
+
|
|
9
|
+
— TTYCoke Documentation
|
|
10
|
+
|
|
11
|
+
</title>
|
|
12
|
+
|
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
|
14
|
+
|
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
|
16
|
+
|
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
|
18
|
+
relpath = '..';
|
|
19
|
+
if (relpath != '') relpath += '/';
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
|
23
|
+
|
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
</head>
|
|
28
|
+
<body>
|
|
29
|
+
<script type="text/javascript" charset="utf-8">
|
|
30
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
<div id="header">
|
|
34
|
+
<div id="menu">
|
|
35
|
+
|
|
36
|
+
<a href="../_index.html">Index (R)</a> »
|
|
37
|
+
<span class='title'><span class='object_link'><a href="../TTYCoke.html" title="TTYCoke (module)">TTYCoke</a></span></span>
|
|
38
|
+
»
|
|
39
|
+
<span class="title">Run</span>
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<div id="search">
|
|
46
|
+
|
|
47
|
+
<a id="class_list_link" href="#">Class List</a>
|
|
48
|
+
|
|
49
|
+
<a id="method_list_link" href="#">Method List</a>
|
|
50
|
+
|
|
51
|
+
<a id="file_list_link" href="#">File List</a>
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
<div class="clear"></div>
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
<iframe id="search_frame"></iframe>
|
|
58
|
+
|
|
59
|
+
<div id="content"><h1>Class: TTYCoke::Run
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
</h1>
|
|
64
|
+
|
|
65
|
+
<dl class="box">
|
|
66
|
+
|
|
67
|
+
<dt class="r1">Inherits:</dt>
|
|
68
|
+
<dd class="r1">
|
|
69
|
+
<span class="inheritName">Object</span>
|
|
70
|
+
|
|
71
|
+
<ul class="fullTree">
|
|
72
|
+
<li>Object</li>
|
|
73
|
+
|
|
74
|
+
<li class="next">TTYCoke::Run</li>
|
|
75
|
+
|
|
76
|
+
</ul>
|
|
77
|
+
<a href="#" class="inheritanceTree">show all</a>
|
|
78
|
+
|
|
79
|
+
</dd>
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
<dt class="r2 last">Defined in:</dt>
|
|
90
|
+
<dd class="r2 last">lib/ttycoke/run.rb</dd>
|
|
91
|
+
|
|
92
|
+
</dl>
|
|
93
|
+
<div class="clear"></div>
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
<h2>
|
|
102
|
+
Instance Method Summary
|
|
103
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
104
|
+
</h2>
|
|
105
|
+
|
|
106
|
+
<ul class="summary">
|
|
107
|
+
|
|
108
|
+
<li class="public ">
|
|
109
|
+
<span class="summary_signature">
|
|
110
|
+
|
|
111
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Run) <strong>initialize</strong>(argv = {}) </a>
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
</span>
|
|
116
|
+
|
|
117
|
+
<span class="note title constructor">constructor</span>
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
<span class="summary_desc"><div class='inline'>
|
|
127
|
+
<p>A new instance of Run.</p>
|
|
128
|
+
</div></span>
|
|
129
|
+
|
|
130
|
+
</li>
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
</ul>
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
<div id="constructor_details" class="method_details_list">
|
|
137
|
+
<h2>Constructor Details</h2>
|
|
138
|
+
|
|
139
|
+
<div class="method_details first">
|
|
140
|
+
<p class="signature first" id="initialize-instance_method">
|
|
141
|
+
|
|
142
|
+
- (<tt><span class='object_link'><a href="" title="TTYCoke::Run (class)">Run</a></span></tt>) <strong>initialize</strong>(argv = {})
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
</p><div class="docstring">
|
|
147
|
+
<div class="discussion">
|
|
148
|
+
|
|
149
|
+
<p>A new instance of Run</p>
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
</div>
|
|
153
|
+
</div>
|
|
154
|
+
<div class="tags">
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
</div><table class="source_code">
|
|
158
|
+
<tr>
|
|
159
|
+
<td>
|
|
160
|
+
<pre class="lines">
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
4
|
|
164
|
+
5
|
|
165
|
+
6
|
|
166
|
+
7
|
|
167
|
+
8
|
|
168
|
+
9
|
|
169
|
+
10</pre>
|
|
170
|
+
</td>
|
|
171
|
+
<td>
|
|
172
|
+
<pre class="code"><span class="info file"># File 'lib/ttycoke/run.rb', line 4</span>
|
|
173
|
+
|
|
174
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span> <span class='id identifier rubyid_argv'>argv</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span>
|
|
175
|
+
<span class='id identifier rubyid_log_rescue'>log_rescue</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='id identifier rubyid___method__'>__method__</span><span class='comma'>,</span> <span class='id identifier rubyid_caller'>caller</span><span class='rparen'>)</span> <span class='lbrace'>{</span>
|
|
176
|
+
<span class='ivar'>@argv</span> <span class='op'>=</span> <span class='id identifier rubyid_argv'>argv</span>
|
|
177
|
+
<span class='ivar'>@prog</span> <span class='op'>=</span> <span class='const'>TTYCoke</span><span class='op'>::</span><span class='const'>Config</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='period'>.</span><span class='id identifier rubyid_find_program'>find_program</span><span class='lparen'>(</span><span class='ivar'>@argv</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='int'>0</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
|
178
|
+
<span class='rbrace'>}</span>
|
|
179
|
+
<span class='id identifier rubyid_start!'>start!</span>
|
|
180
|
+
<span class='kw'>end</span></pre>
|
|
181
|
+
</td>
|
|
182
|
+
</tr>
|
|
183
|
+
</table>
|
|
184
|
+
</div>
|
|
185
|
+
|
|
186
|
+
</div>
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
</div>
|
|
190
|
+
|
|
191
|
+
<div id="footer">
|
|
192
|
+
Generated on Mon Jan 30 03:06:12 2012 by
|
|
193
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
194
|
+
0.7.4 (ruby-1.9.3).
|
|
195
|
+
</div>
|
|
196
|
+
|
|
197
|
+
</body>
|
|
198
|
+
</html>
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
4
|
+
<head>
|
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
6
|
+
<title>
|
|
7
|
+
Class: TTYCoke::TTYCokeLogFormat
|
|
8
|
+
|
|
9
|
+
— TTYCoke Documentation
|
|
10
|
+
|
|
11
|
+
</title>
|
|
12
|
+
|
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
|
14
|
+
|
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
|
16
|
+
|
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
|
18
|
+
relpath = '..';
|
|
19
|
+
if (relpath != '') relpath += '/';
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
|
23
|
+
|
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
</head>
|
|
28
|
+
<body>
|
|
29
|
+
<script type="text/javascript" charset="utf-8">
|
|
30
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
<div id="header">
|
|
34
|
+
<div id="menu">
|
|
35
|
+
|
|
36
|
+
<a href="../_index.html">Index (T)</a> »
|
|
37
|
+
<span class='title'><span class='object_link'><a href="../TTYCoke.html" title="TTYCoke (module)">TTYCoke</a></span></span>
|
|
38
|
+
»
|
|
39
|
+
<span class="title">TTYCokeLogFormat</span>
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<div id="search">
|
|
46
|
+
|
|
47
|
+
<a id="class_list_link" href="#">Class List</a>
|
|
48
|
+
|
|
49
|
+
<a id="method_list_link" href="#">Method List</a>
|
|
50
|
+
|
|
51
|
+
<a id="file_list_link" href="#">File List</a>
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
<div class="clear"></div>
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
<iframe id="search_frame"></iframe>
|
|
58
|
+
|
|
59
|
+
<div id="content"><h1>Class: TTYCoke::TTYCokeLogFormat
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
</h1>
|
|
64
|
+
|
|
65
|
+
<dl class="box">
|
|
66
|
+
|
|
67
|
+
<dt class="r1">Inherits:</dt>
|
|
68
|
+
<dd class="r1">
|
|
69
|
+
<span class="inheritName">Logger::Formatter</span>
|
|
70
|
+
|
|
71
|
+
<ul class="fullTree">
|
|
72
|
+
<li>Object</li>
|
|
73
|
+
|
|
74
|
+
<li class="next">Logger::Formatter</li>
|
|
75
|
+
|
|
76
|
+
<li class="next">TTYCoke::TTYCokeLogFormat</li>
|
|
77
|
+
|
|
78
|
+
</ul>
|
|
79
|
+
<a href="#" class="inheritanceTree">show all</a>
|
|
80
|
+
|
|
81
|
+
</dd>
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
<dt class="r2 last">Defined in:</dt>
|
|
92
|
+
<dd class="r2 last">lib/ttycoke/log.rb</dd>
|
|
93
|
+
|
|
94
|
+
</dl>
|
|
95
|
+
<div class="clear"></div>
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
<h2>
|
|
106
|
+
Instance Method Summary
|
|
107
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
108
|
+
</h2>
|
|
109
|
+
|
|
110
|
+
<ul class="summary">
|
|
111
|
+
|
|
112
|
+
<li class="public ">
|
|
113
|
+
<span class="summary_signature">
|
|
114
|
+
|
|
115
|
+
<a href="#call-instance_method" title="#call (instance method)">- (Object) <strong>call</strong>(severity, time, program_name, message) </a>
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
</span>
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
|
129
|
+
|
|
130
|
+
</li>
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
</ul>
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
<div id="instance_method_details" class="method_details_list">
|
|
140
|
+
<h2>Instance Method Details</h2>
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
<div class="method_details first">
|
|
144
|
+
<p class="signature first" id="call-instance_method">
|
|
145
|
+
|
|
146
|
+
- (<tt>Object</tt>) <strong>call</strong>(severity, time, program_name, message)
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
</p><table class="source_code">
|
|
151
|
+
<tr>
|
|
152
|
+
<td>
|
|
153
|
+
<pre class="lines">
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
6
|
|
157
|
+
7
|
|
158
|
+
8
|
|
159
|
+
9
|
|
160
|
+
10
|
|
161
|
+
11
|
|
162
|
+
12
|
|
163
|
+
13
|
|
164
|
+
14
|
|
165
|
+
15
|
|
166
|
+
16
|
|
167
|
+
17
|
|
168
|
+
18
|
|
169
|
+
19</pre>
|
|
170
|
+
</td>
|
|
171
|
+
<td>
|
|
172
|
+
<pre class="code"><span class="info file"># File 'lib/ttycoke/log.rb', line 6</span>
|
|
173
|
+
|
|
174
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_call'>call</span> <span class='id identifier rubyid_severity'>severity</span><span class='comma'>,</span> <span class='id identifier rubyid_time'>time</span><span class='comma'>,</span> <span class='id identifier rubyid_program_name'>program_name</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span>
|
|
175
|
+
<span class='kw'>case</span> <span class='id identifier rubyid_severity'>severity</span>
|
|
176
|
+
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>DEBUG</span><span class='tstring_end'>"</span></span>
|
|
177
|
+
<span class='id identifier rubyid_datetime'>datetime</span> <span class='op'>=</span> <span class='id identifier rubyid_time'>time</span><span class='period'>.</span><span class='id identifier rubyid_strftime'>strftime</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>%Y-%m-%d %H:%M</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
178
|
+
<span class='id identifier rubyid_print_message'>print_message</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>DEBUG</span><span class='tstring_end'>"</span></span><span class='period'>.</span><span class='id identifier rubyid_yellow'>yellow</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>--- (</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_datetime'>datetime</span><span class='rbrace'>}</span><span class='tstring_content'>)\n</span><span class='embexpr_beg'>#{</span><span class='const'>String</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span>
|
|
179
|
+
<span class='lbracket'>[</span><span class='id identifier rubyid_print_message'>print_message</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n\n</span><span class='tstring_end'>"</span></span>
|
|
180
|
+
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>ERROR</span><span class='tstring_end'>"</span></span>
|
|
181
|
+
<span class='id identifier rubyid_datetime'>datetime</span> <span class='op'>=</span> <span class='id identifier rubyid_time'>time</span><span class='period'>.</span><span class='id identifier rubyid_strftime'>strftime</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>%Y-%m-%d %H:%M</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
182
|
+
<span class='id identifier rubyid_print_message'>print_message</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>ERROR</span><span class='tstring_end'>"</span></span><span class='period'>.</span><span class='id identifier rubyid_red'>red</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'> --- (</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_datetime'>datetime</span><span class='rbrace'>}</span><span class='tstring_content'>)\n</span><span class='embexpr_beg'>#{</span><span class='const'>String</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span>
|
|
183
|
+
<span class='lbracket'>[</span><span class='id identifier rubyid_print_message'>print_message</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n\n</span><span class='tstring_end'>"</span></span>
|
|
184
|
+
<span class='kw'>else</span>
|
|
185
|
+
<span class='kw'>super</span>
|
|
186
|
+
<span class='kw'>end</span>
|
|
187
|
+
<span class='kw'>end</span></pre>
|
|
188
|
+
</td>
|
|
189
|
+
</tr>
|
|
190
|
+
</table>
|
|
191
|
+
</div>
|
|
192
|
+
|
|
193
|
+
</div>
|
|
194
|
+
|
|
195
|
+
</div>
|
|
196
|
+
|
|
197
|
+
<div id="footer">
|
|
198
|
+
Generated on Mon Jan 30 03:06:12 2012 by
|
|
199
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
200
|
+
0.7.4 (ruby-1.9.3).
|
|
201
|
+
</div>
|
|
202
|
+
|
|
203
|
+
</body>
|
|
204
|
+
</html>
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
4
|
+
<head>
|
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
6
|
+
<title>
|
|
7
|
+
Module: TTYCoke::Version
|
|
8
|
+
|
|
9
|
+
— TTYCoke Documentation
|
|
10
|
+
|
|
11
|
+
</title>
|
|
12
|
+
|
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
|
14
|
+
|
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
|
16
|
+
|
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
|
18
|
+
relpath = '..';
|
|
19
|
+
if (relpath != '') relpath += '/';
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
|
23
|
+
|
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
</head>
|
|
28
|
+
<body>
|
|
29
|
+
<script type="text/javascript" charset="utf-8">
|
|
30
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
<div id="header">
|
|
34
|
+
<div id="menu">
|
|
35
|
+
|
|
36
|
+
<a href="../_index.html">Index (V)</a> »
|
|
37
|
+
<span class='title'><span class='object_link'><a href="../TTYCoke.html" title="TTYCoke (module)">TTYCoke</a></span></span>
|
|
38
|
+
»
|
|
39
|
+
<span class="title">Version</span>
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<div id="search">
|
|
46
|
+
|
|
47
|
+
<a id="class_list_link" href="#">Class List</a>
|
|
48
|
+
|
|
49
|
+
<a id="method_list_link" href="#">Method List</a>
|
|
50
|
+
|
|
51
|
+
<a id="file_list_link" href="#">File List</a>
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
<div class="clear"></div>
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
<iframe id="search_frame"></iframe>
|
|
58
|
+
|
|
59
|
+
<div id="content"><h1>Module: TTYCoke::Version
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
</h1>
|
|
64
|
+
|
|
65
|
+
<dl class="box">
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
<dt class="r1">Extended by:</dt>
|
|
70
|
+
<dd class="r1"><span class='object_link'><a href="" title="TTYCoke::Version (module)">Version</a></span></dd>
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
<dt class="r2">Included in:</dt>
|
|
78
|
+
<dd class="r2"><span class='object_link'><a href="" title="TTYCoke::Version (module)">Version</a></span></dd>
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
<dt class="r1 last">Defined in:</dt>
|
|
83
|
+
<dd class="r1 last">lib/ttycoke/version.rb</dd>
|
|
84
|
+
|
|
85
|
+
</dl>
|
|
86
|
+
<div class="clear"></div>
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
<h2>Constant Summary</h2>
|
|
90
|
+
|
|
91
|
+
<dl class="constants">
|
|
92
|
+
|
|
93
|
+
<dt id="MAJOR-constant" class="">MAJOR =
|
|
94
|
+
|
|
95
|
+
</dt>
|
|
96
|
+
<dd><pre class="code"><span class='int'>0</span></pre></dd>
|
|
97
|
+
|
|
98
|
+
<dt id="MINOR-constant" class="">MINOR =
|
|
99
|
+
|
|
100
|
+
</dt>
|
|
101
|
+
<dd><pre class="code"><span class='int'>1</span></pre></dd>
|
|
102
|
+
|
|
103
|
+
<dt id="PATCH-constant" class="">PATCH =
|
|
104
|
+
|
|
105
|
+
</dt>
|
|
106
|
+
<dd><pre class="code"><span class='int'>0</span></pre></dd>
|
|
107
|
+
|
|
108
|
+
<dt id="BUILD-constant" class="">BUILD =
|
|
109
|
+
|
|
110
|
+
</dt>
|
|
111
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>dev</span><span class='tstring_end'>'</span></span></pre></dd>
|
|
112
|
+
|
|
113
|
+
<dt id="STRING-constant" class="">STRING =
|
|
114
|
+
|
|
115
|
+
</dt>
|
|
116
|
+
<dd><pre class="code"><span class='lbracket'>[</span><span class='const'>MAJOR</span><span class='comma'>,</span> <span class='const'>MINOR</span><span class='comma'>,</span> <span class='const'>PATCH</span><span class='comma'>,</span> <span class='const'>BUILD</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_compact'>compact</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>.</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span></pre></dd>
|
|
117
|
+
|
|
118
|
+
</dl>
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
</div>
|
|
128
|
+
|
|
129
|
+
<div id="footer">
|
|
130
|
+
Generated on Mon Jan 30 03:06:13 2012 by
|
|
131
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
132
|
+
0.7.4 (ruby-1.9.3).
|
|
133
|
+
</div>
|
|
134
|
+
|
|
135
|
+
</body>
|
|
136
|
+
</html>
|
data/doc/TTYCoke.html
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
4
|
+
<head>
|
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
6
|
+
<title>
|
|
7
|
+
Module: TTYCoke
|
|
8
|
+
|
|
9
|
+
— TTYCoke Documentation
|
|
10
|
+
|
|
11
|
+
</title>
|
|
12
|
+
|
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
|
|
14
|
+
|
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
|
16
|
+
|
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
|
18
|
+
relpath = '';
|
|
19
|
+
if (relpath != '') relpath += '/';
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
|
23
|
+
|
|
24
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
</head>
|
|
28
|
+
<body>
|
|
29
|
+
<script type="text/javascript" charset="utf-8">
|
|
30
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
<div id="header">
|
|
34
|
+
<div id="menu">
|
|
35
|
+
|
|
36
|
+
<a href="_index.html">Index (T)</a> »
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<span class="title">TTYCoke</span>
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<div id="search">
|
|
46
|
+
|
|
47
|
+
<a id="class_list_link" href="#">Class List</a>
|
|
48
|
+
|
|
49
|
+
<a id="method_list_link" href="#">Method List</a>
|
|
50
|
+
|
|
51
|
+
<a id="file_list_link" href="#">File List</a>
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
<div class="clear"></div>
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
<iframe id="search_frame"></iframe>
|
|
58
|
+
|
|
59
|
+
<div id="content"><h1>Module: TTYCoke
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
</h1>
|
|
64
|
+
|
|
65
|
+
<dl class="box">
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
<dt class="r1 last">Defined in:</dt>
|
|
75
|
+
<dd class="r1 last">lib/ttycoke.rb<span class="defines">,<br />
|
|
76
|
+
lib/ttycoke/log.rb,<br /> lib/ttycoke/run.rb,<br /> lib/ttycoke/cli.rb,<br /> lib/ttycoke/ansi.rb,<br /> lib/ttycoke/config.rb,<br /> lib/ttycoke/parser.rb,<br /> lib/ttycoke/errors.rb,<br /> lib/ttycoke/version.rb,<br /> lib/ttycoke/platform.rb</span>
|
|
77
|
+
</dd>
|
|
78
|
+
|
|
79
|
+
</dl>
|
|
80
|
+
<div class="clear"></div>
|
|
81
|
+
|
|
82
|
+
<h2>Defined Under Namespace</h2>
|
|
83
|
+
<p class="children">
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="TTYCoke/ANSI.html" title="TTYCoke::ANSI (module)">ANSI</a></span>, <span class='object_link'><a href="TTYCoke/Errors.html" title="TTYCoke::Errors (module)">Errors</a></span>, <span class='object_link'><a href="TTYCoke/Log.html" title="TTYCoke::Log (module)">Log</a></span>, <span class='object_link'><a href="TTYCoke/Version.html" title="TTYCoke::Version (module)">Version</a></span>
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="TTYCoke/CLI.html" title="TTYCoke::CLI (class)">CLI</a></span>, <span class='object_link'><a href="TTYCoke/Config.html" title="TTYCoke::Config (class)">Config</a></span>, <span class='object_link'><a href="TTYCoke/Parser.html" title="TTYCoke::Parser (class)">Parser</a></span>, <span class='object_link'><a href="TTYCoke/Platform.html" title="TTYCoke::Platform (class)">Platform</a></span>, <span class='object_link'><a href="TTYCoke/Run.html" title="TTYCoke::Run (class)">Run</a></span>, <span class='object_link'><a href="TTYCoke/TTYCokeLogFormat.html" title="TTYCoke::TTYCokeLogFormat (class)">TTYCokeLogFormat</a></span>
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
</p>
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
</div>
|
|
102
|
+
|
|
103
|
+
<div id="footer">
|
|
104
|
+
Generated on Mon Jan 30 03:06:12 2012 by
|
|
105
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
106
|
+
0.7.4 (ruby-1.9.3).
|
|
107
|
+
</div>
|
|
108
|
+
|
|
109
|
+
</body>
|
|
110
|
+
</html>
|