net-ssh 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/LICENSE-BSD +27 -0
- data/doc/LICENSE-GPL +280 -0
- data/doc/LICENSE-RUBY +56 -0
- data/doc/README +13 -0
- data/doc/manual-html/chapter-1.html +333 -0
- data/doc/manual-html/chapter-2.html +455 -0
- data/doc/manual-html/chapter-3.html +413 -0
- data/doc/manual-html/chapter-4.html +353 -0
- data/doc/manual-html/chapter-5.html +393 -0
- data/doc/manual-html/chapter-6.html +296 -0
- data/doc/manual-html/index.html +217 -0
- data/doc/manual-html/manual.css +192 -0
- data/doc/manual/chapter.erb +18 -0
- data/doc/manual/example.erb +18 -0
- data/doc/manual/index.erb +29 -0
- data/doc/manual/manual.css +192 -0
- data/doc/manual/manual.rb +240 -0
- data/doc/manual/manual.yml +67 -0
- data/doc/manual/page.erb +87 -0
- data/doc/manual/parts/channels_callbacks.txt +32 -0
- data/doc/manual/parts/channels_loop.txt +14 -0
- data/doc/manual/parts/channels_open.txt +20 -0
- data/doc/manual/parts/channels_operations.txt +15 -0
- data/doc/manual/parts/channels_types.txt +3 -0
- data/doc/manual/parts/channels_what_are.txt +7 -0
- data/doc/manual/parts/exec_channels.txt +28 -0
- data/doc/manual/parts/exec_open.txt +51 -0
- data/doc/manual/parts/exec_popen3.txt +35 -0
- data/doc/manual/parts/forward_direct.txt +37 -0
- data/doc/manual/parts/forward_handlers.txt +16 -0
- data/doc/manual/parts/forward_intro.txt +18 -0
- data/doc/manual/parts/forward_local.txt +18 -0
- data/doc/manual/parts/forward_remote.txt +14 -0
- data/doc/manual/parts/intro_author.txt +1 -0
- data/doc/manual/parts/intro_getting.txt +39 -0
- data/doc/manual/parts/intro_license.txt +6 -0
- data/doc/manual/parts/intro_support.txt +7 -0
- data/doc/manual/parts/intro_what_is.txt +7 -0
- data/doc/manual/parts/intro_what_is_not.txt +3 -0
- data/doc/manual/parts/proxy_http.txt +52 -0
- data/doc/manual/parts/proxy_intro.txt +1 -0
- data/doc/manual/parts/proxy_socks.txt +23 -0
- data/doc/manual/parts/session_key.txt +66 -0
- data/doc/manual/parts/session_options.txt +42 -0
- data/doc/manual/parts/session_session.txt +14 -0
- data/doc/manual/parts/session_start.txt +49 -0
- data/doc/manual/tutorial.erb +30 -0
- data/examples/channel-demo.rb +81 -0
- data/examples/port-forward.rb +51 -0
- data/examples/process-demo.rb +91 -0
- data/examples/remote-net-port-forward.rb +45 -0
- data/examples/remote-port-forward.rb +80 -0
- data/examples/tail-demo.rb +49 -0
- data/lib/net/ssh.rb +52 -0
- data/lib/net/ssh/connection/channel.rb +411 -0
- data/lib/net/ssh/connection/constants.rb +47 -0
- data/lib/net/ssh/connection/driver.rb +343 -0
- data/lib/net/ssh/connection/services.rb +72 -0
- data/lib/net/ssh/connection/term.rb +90 -0
- data/lib/net/ssh/errors.rb +27 -0
- data/lib/net/ssh/proxy/errors.rb +34 -0
- data/lib/net/ssh/proxy/http.rb +126 -0
- data/lib/net/ssh/proxy/socks4.rb +83 -0
- data/lib/net/ssh/proxy/socks5.rb +160 -0
- data/lib/net/ssh/service/forward/driver.rb +319 -0
- data/lib/net/ssh/service/forward/local-network-handler.rb +74 -0
- data/lib/net/ssh/service/forward/remote-network-handler.rb +81 -0
- data/lib/net/ssh/service/forward/services.rb +76 -0
- data/lib/net/ssh/service/process/driver.rb +153 -0
- data/lib/net/ssh/service/process/open.rb +193 -0
- data/lib/net/ssh/service/process/popen3.rb +160 -0
- data/lib/net/ssh/service/process/services.rb +66 -0
- data/lib/net/ssh/service/services.rb +44 -0
- data/lib/net/ssh/session.rb +242 -0
- data/lib/net/ssh/transport/algorithm-negotiator.rb +267 -0
- data/lib/net/ssh/transport/compress/compressor.rb +53 -0
- data/lib/net/ssh/transport/compress/decompressor.rb +53 -0
- data/lib/net/ssh/transport/compress/none-compressor.rb +39 -0
- data/lib/net/ssh/transport/compress/none-decompressor.rb +39 -0
- data/lib/net/ssh/transport/compress/services.rb +68 -0
- data/lib/net/ssh/transport/compress/zlib-compressor.rb +60 -0
- data/lib/net/ssh/transport/compress/zlib-decompressor.rb +52 -0
- data/lib/net/ssh/transport/constants.rb +66 -0
- data/lib/net/ssh/transport/errors.rb +47 -0
- data/lib/net/ssh/transport/identity-cipher.rb +61 -0
- data/lib/net/ssh/transport/kex/dh-gex.rb +106 -0
- data/lib/net/ssh/transport/kex/dh.rb +231 -0
- data/lib/net/ssh/transport/kex/services.rb +60 -0
- data/lib/net/ssh/transport/ossl/buffer-factory.rb +52 -0
- data/lib/net/ssh/transport/ossl/buffer.rb +87 -0
- data/lib/net/ssh/transport/ossl/cipher-factory.rb +98 -0
- data/lib/net/ssh/transport/ossl/digest-factory.rb +51 -0
- data/lib/net/ssh/transport/ossl/hmac-factory.rb +71 -0
- data/lib/net/ssh/transport/ossl/hmac/hmac.rb +62 -0
- data/lib/net/ssh/transport/ossl/hmac/md5-96.rb +44 -0
- data/lib/net/ssh/transport/ossl/hmac/md5.rb +46 -0
- data/lib/net/ssh/transport/ossl/hmac/none.rb +46 -0
- data/lib/net/ssh/transport/ossl/hmac/services.rb +68 -0
- data/lib/net/ssh/transport/ossl/hmac/sha1-96.rb +44 -0
- data/lib/net/ssh/transport/ossl/hmac/sha1.rb +45 -0
- data/lib/net/ssh/transport/ossl/key-factory.rb +113 -0
- data/lib/net/ssh/transport/ossl/services.rb +149 -0
- data/lib/net/ssh/transport/packet-stream.rb +210 -0
- data/lib/net/ssh/transport/services.rb +146 -0
- data/lib/net/ssh/transport/session.rb +296 -0
- data/lib/net/ssh/transport/version-negotiator.rb +73 -0
- data/lib/net/ssh/userauth/agent.rb +218 -0
- data/lib/net/ssh/userauth/constants.rb +35 -0
- data/lib/net/ssh/userauth/driver.rb +176 -0
- data/lib/net/ssh/userauth/methods/hostbased.rb +119 -0
- data/lib/net/ssh/userauth/methods/password.rb +70 -0
- data/lib/net/ssh/userauth/methods/publickey.rb +137 -0
- data/lib/net/ssh/userauth/methods/services.rb +63 -0
- data/lib/net/ssh/userauth/services.rb +126 -0
- data/lib/net/ssh/userauth/userkeys.rb +258 -0
- data/lib/net/ssh/util/buffer.rb +274 -0
- data/lib/net/ssh/util/openssl.rb +146 -0
- data/lib/net/ssh/util/prompter.rb +73 -0
- data/lib/net/ssh/version.rb +29 -0
- data/test/ALL-TESTS.rb +21 -0
- data/test/connection/tc_channel.rb +136 -0
- data/test/connection/tc_driver.rb +287 -0
- data/test/connection/tc_integration.rb +85 -0
- data/test/proxy/tc_http.rb +209 -0
- data/test/proxy/tc_socks4.rb +148 -0
- data/test/proxy/tc_socks5.rb +214 -0
- data/test/service/forward/tc_driver.rb +289 -0
- data/test/service/forward/tc_local_network_handler.rb +123 -0
- data/test/service/forward/tc_remote_network_handler.rb +108 -0
- data/test/service/process/tc_driver.rb +79 -0
- data/test/service/process/tc_integration.rb +117 -0
- data/test/service/process/tc_open.rb +179 -0
- data/test/service/process/tc_popen3.rb +164 -0
- data/test/tc_integration.rb +79 -0
- data/test/transport/compress/tc_none_compress.rb +41 -0
- data/test/transport/compress/tc_none_decompress.rb +45 -0
- data/test/transport/compress/tc_zlib_compress.rb +61 -0
- data/test/transport/compress/tc_zlib_decompress.rb +48 -0
- data/test/transport/kex/tc_dh.rb +304 -0
- data/test/transport/kex/tc_dh_gex.rb +70 -0
- data/test/transport/ossl/fixtures/dsa-encrypted +15 -0
- data/test/transport/ossl/fixtures/dsa-encrypted-bad +15 -0
- data/test/transport/ossl/fixtures/dsa-unencrypted +12 -0
- data/test/transport/ossl/fixtures/dsa-unencrypted-bad +12 -0
- data/test/transport/ossl/fixtures/dsa-unencrypted.pub +1 -0
- data/test/transport/ossl/fixtures/not-a-private-key +4 -0
- data/test/transport/ossl/fixtures/not-supported +2 -0
- data/test/transport/ossl/fixtures/rsa-encrypted +18 -0
- data/test/transport/ossl/fixtures/rsa-encrypted-bad +18 -0
- data/test/transport/ossl/fixtures/rsa-unencrypted +15 -0
- data/test/transport/ossl/fixtures/rsa-unencrypted-bad +15 -0
- data/test/transport/ossl/fixtures/rsa-unencrypted.pub +1 -0
- data/test/transport/ossl/hmac/tc_hmac.rb +58 -0
- data/test/transport/ossl/hmac/tc_md5.rb +50 -0
- data/test/transport/ossl/hmac/tc_md5_96.rb +50 -0
- data/test/transport/ossl/hmac/tc_none.rb +50 -0
- data/test/transport/ossl/hmac/tc_sha1.rb +50 -0
- data/test/transport/ossl/hmac/tc_sha1_96.rb +50 -0
- data/test/transport/ossl/tc_buffer.rb +97 -0
- data/test/transport/ossl/tc_buffer_factory.rb +67 -0
- data/test/transport/ossl/tc_cipher_factory.rb +84 -0
- data/test/transport/ossl/tc_digest_factory.rb +39 -0
- data/test/transport/ossl/tc_hmac_factory.rb +72 -0
- data/test/transport/ossl/tc_key_factory.rb +199 -0
- data/test/transport/tc_algorithm_negotiator.rb +169 -0
- data/test/transport/tc_identity_cipher.rb +52 -0
- data/test/transport/tc_integration.rb +110 -0
- data/test/transport/tc_packet_stream.rb +183 -0
- data/test/transport/tc_session.rb +283 -0
- data/test/transport/tc_version_negotiator.rb +86 -0
- data/test/userauth/methods/tc_hostbased.rb +136 -0
- data/test/userauth/methods/tc_password.rb +89 -0
- data/test/userauth/methods/tc_publickey.rb +167 -0
- data/test/userauth/tc_agent.rb +223 -0
- data/test/userauth/tc_driver.rb +190 -0
- data/test/userauth/tc_integration.rb +81 -0
- data/test/userauth/tc_userkeys.rb +265 -0
- data/test/util/tc_buffer.rb +217 -0
- metadata +256 -0
@@ -0,0 +1,217 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<title>Net::SSH Manual</title>
|
4
|
+
<link type="text/css" rel="stylesheet" href="manual.css" />
|
5
|
+
</head>
|
6
|
+
|
7
|
+
<body>
|
8
|
+
<div id="banner">
|
9
|
+
<table border='0' cellpadding='0' cellspacing='0' width='100%'>
|
10
|
+
<tr><td valign='top' align='left'>
|
11
|
+
<div class="title">
|
12
|
+
<span class="product">Net::SSH—</span><br />
|
13
|
+
<span class="tagline">Secure Shell for Ruby</span>
|
14
|
+
</div>
|
15
|
+
</td><td valign='middle' align='right'>
|
16
|
+
<div class="info">
|
17
|
+
Net::SSH Version: <strong>0.5.0</strong><br />
|
18
|
+
Manual Last Updated: <strong>2004-11-23 20:18 GMT</strong>
|
19
|
+
</div>
|
20
|
+
</td></tr>
|
21
|
+
</table>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
<table border='0' width='100%' cellpadding='0' cellspacing='0'>
|
25
|
+
<tr><td valign='top'>
|
26
|
+
|
27
|
+
<div id="navigation">
|
28
|
+
<h1>Net::SSH Manual</h1>
|
29
|
+
|
30
|
+
<h2>Chapters</h2>
|
31
|
+
<ol type="I">
|
32
|
+
|
33
|
+
<li>
|
34
|
+
<a href="chapter-1.html">
|
35
|
+
Introduction
|
36
|
+
</a>
|
37
|
+
|
38
|
+
<ol type="1">
|
39
|
+
|
40
|
+
<li><a href="chapter-1.html#s1">What is Net::SSH?</a></li>
|
41
|
+
|
42
|
+
<li><a href="chapter-1.html#s2">What isn’t Net::SSH?</a></li>
|
43
|
+
|
44
|
+
<li><a href="chapter-1.html#s3">Getting Net::SSH</a></li>
|
45
|
+
|
46
|
+
<li><a href="chapter-1.html#s4">License Information</a></li>
|
47
|
+
|
48
|
+
<li><a href="chapter-1.html#s5">Support</a></li>
|
49
|
+
|
50
|
+
<li><a href="chapter-1.html#s6">About the Author</a></li>
|
51
|
+
|
52
|
+
</ol>
|
53
|
+
</li>
|
54
|
+
|
55
|
+
<li>
|
56
|
+
<a href="chapter-2.html">
|
57
|
+
Starting a Session
|
58
|
+
</a>
|
59
|
+
|
60
|
+
<ol type="1">
|
61
|
+
|
62
|
+
<li><a href="chapter-2.html#s1">Using Net::SSH.start</a></li>
|
63
|
+
|
64
|
+
<li><a href="chapter-2.html#s2">Using a Public/Private Key</a></li>
|
65
|
+
|
66
|
+
<li><a href="chapter-2.html#s3">Options</a></li>
|
67
|
+
|
68
|
+
<li><a href="chapter-2.html#s4">Using Net::SSH::Session</a></li>
|
69
|
+
|
70
|
+
</ol>
|
71
|
+
</li>
|
72
|
+
|
73
|
+
<li>
|
74
|
+
<a href="chapter-3.html">
|
75
|
+
Channels
|
76
|
+
</a>
|
77
|
+
|
78
|
+
<ol type="1">
|
79
|
+
|
80
|
+
<li><a href="chapter-3.html#s1">What are Channels?</a></li>
|
81
|
+
|
82
|
+
<li><a href="chapter-3.html#s2">Session.loop</a></li>
|
83
|
+
|
84
|
+
<li><a href="chapter-3.html#s3">Channel Types</a></li>
|
85
|
+
|
86
|
+
<li><a href="chapter-3.html#s4">Opening a Channel</a></li>
|
87
|
+
|
88
|
+
<li><a href="chapter-3.html#s5">Callbacks</a></li>
|
89
|
+
|
90
|
+
<li><a href="chapter-3.html#s6">Channel Operations</a></li>
|
91
|
+
|
92
|
+
</ol>
|
93
|
+
</li>
|
94
|
+
|
95
|
+
<li>
|
96
|
+
<a href="chapter-4.html">
|
97
|
+
Executing Commands
|
98
|
+
</a>
|
99
|
+
|
100
|
+
<ol type="1">
|
101
|
+
|
102
|
+
<li><a href="chapter-4.html#s1">Using Channels</a></li>
|
103
|
+
|
104
|
+
<li><a href="chapter-4.html#s2">Using #process.open</a></li>
|
105
|
+
|
106
|
+
<li><a href="chapter-4.html#s3">Using #process.popen3</a></li>
|
107
|
+
|
108
|
+
</ol>
|
109
|
+
</li>
|
110
|
+
|
111
|
+
<li>
|
112
|
+
<a href="chapter-5.html">
|
113
|
+
Port Forwarding
|
114
|
+
</a>
|
115
|
+
|
116
|
+
<ol type="1">
|
117
|
+
|
118
|
+
<li><a href="chapter-5.html#s1">Introduction</a></li>
|
119
|
+
|
120
|
+
<li><a href="chapter-5.html#s2">Local-to-Remote</a></li>
|
121
|
+
|
122
|
+
<li><a href="chapter-5.html#s3">Remote-to-Local</a></li>
|
123
|
+
|
124
|
+
<li><a href="chapter-5.html#s4">Direct Channels</a></li>
|
125
|
+
|
126
|
+
<li><a href="chapter-5.html#s5">Remote-to-Local Handlers</a></li>
|
127
|
+
|
128
|
+
</ol>
|
129
|
+
</li>
|
130
|
+
|
131
|
+
<li>
|
132
|
+
<a href="chapter-6.html">
|
133
|
+
Using Proxies
|
134
|
+
</a>
|
135
|
+
|
136
|
+
<ol type="1">
|
137
|
+
|
138
|
+
<li><a href="chapter-6.html#s1">Introduction</a></li>
|
139
|
+
|
140
|
+
<li><a href="chapter-6.html#s2"><span class="caps">HTTP</span></a></li>
|
141
|
+
|
142
|
+
<li><a href="chapter-6.html#s3"><span class="caps">SOCKS</span></a></li>
|
143
|
+
|
144
|
+
</ol>
|
145
|
+
</li>
|
146
|
+
|
147
|
+
</ol>
|
148
|
+
|
149
|
+
<h2>Other Documentation</h2>
|
150
|
+
|
151
|
+
<ul>
|
152
|
+
<li><a href="http://net-ssh.rubyforge.org/api/index.html">Net::SSH API</a></li>
|
153
|
+
<li><a href="http://rubyforge.org/tracker/?atid=1842&group_id=274&func=browse">Net::SSH FAQ</a></li>
|
154
|
+
</ul>
|
155
|
+
|
156
|
+
<h2>Tutorials</h2>
|
157
|
+
<ol>
|
158
|
+
|
159
|
+
</ol>
|
160
|
+
|
161
|
+
<p align="center"><strong>More To Come...</strong></p>
|
162
|
+
|
163
|
+
<div class="license">
|
164
|
+
<a href="http://creativecommons.org/licenses/by-sa/2.0/"><img alt="Creative Commons License" border="0" src="http://creativecommons.org/images/public/somerights" /></a><br />
|
165
|
+
This manual is licensed under a <a href="http://creativecommons.org/licenses/by-sa/2.0/">Creative Commons License</a>.
|
166
|
+
</div>
|
167
|
+
</div>
|
168
|
+
|
169
|
+
</td><td valign='top' width="100%">
|
170
|
+
|
171
|
+
<div id="content">
|
172
|
+
|
173
|
+
<p class="product-manual">Product Manual</p>
|
174
|
+
|
175
|
+
<p align="center">
|
176
|
+
<img src=""
|
177
|
+
alt="Net::SSH: Secure Shell for Ruby" />
|
178
|
+
</p>
|
179
|
+
|
180
|
+
<p align="center">
|
181
|
+
|
182
|
+
Project Page: <a href="http://rubyforge.org/projects/net-ssh">http://rubyforge.org/projects/net-ssh</a><br />
|
183
|
+
|
184
|
+
User Manual: <a href="http://net-ssh.rubyforge.org">http://net-ssh.rubyforge.org</a><br />
|
185
|
+
|
186
|
+
API Documentation: <a href="http://net-ssh.rubyforge.org/api">http://net-ssh.rubyforge.org/api</a><br />
|
187
|
+
|
188
|
+
FAQ Document: <a href="http://net-ssh.rubyforge.org/faq.html">http://net-ssh.rubyforge.org/faq.html</a><br />
|
189
|
+
|
190
|
+
Net::SSH Wiki: <a href="http://net-ssh.rubyforge.org/wiki/wiki.pl">http://net-ssh.rubyforge.org/wiki/wiki.pl</a><br />
|
191
|
+
|
192
|
+
</p>
|
193
|
+
|
194
|
+
|
195
|
+
<p align="center"><strong>Recent Updates to This Manual</strong></p>
|
196
|
+
<table border='0' cellpadding='0' cellspacing='0' align='center'><tr><td>
|
197
|
+
<ul>
|
198
|
+
|
199
|
+
<li>New Net::SSH Version</li>
|
200
|
+
|
201
|
+
</ul>
|
202
|
+
</table>
|
203
|
+
|
204
|
+
|
205
|
+
<p class="copyright">
|
206
|
+
Copyright © 2004
|
207
|
+
Jamis Buck
|
208
|
+
(<a href="mailto:jgb3@email.byu.edu">jgb3@email.byu.edu</a>)
|
209
|
+
</p>
|
210
|
+
|
211
|
+
|
212
|
+
</div>
|
213
|
+
|
214
|
+
</td></tr>
|
215
|
+
</table>
|
216
|
+
</body>
|
217
|
+
</html>
|
@@ -0,0 +1,192 @@
|
|
1
|
+
body {
|
2
|
+
background: #FFF;
|
3
|
+
font-family: sans-serif;
|
4
|
+
color: #000;
|
5
|
+
margin: 0px;
|
6
|
+
}
|
7
|
+
|
8
|
+
a {
|
9
|
+
color: #00F;
|
10
|
+
text-decoration: none;
|
11
|
+
}
|
12
|
+
|
13
|
+
a:hover {
|
14
|
+
text-decoration: underline;
|
15
|
+
}
|
16
|
+
|
17
|
+
.product-manual {
|
18
|
+
text-align: center;
|
19
|
+
font-size: x-large;
|
20
|
+
font-variant: small-caps;
|
21
|
+
font-weight: bold;
|
22
|
+
color: #005;
|
23
|
+
}
|
24
|
+
|
25
|
+
.copyright {
|
26
|
+
text-align: center;
|
27
|
+
font-size: small;
|
28
|
+
font-style: italic;
|
29
|
+
color: #005;
|
30
|
+
margin-top: 1in;
|
31
|
+
}
|
32
|
+
|
33
|
+
#banner {
|
34
|
+
background: #005;
|
35
|
+
color: #FFF;
|
36
|
+
border-bottom: 1px solid #000;
|
37
|
+
padding-top: 0.5em;
|
38
|
+
padding-bottom: 0.5em;
|
39
|
+
padding-left: 1em;
|
40
|
+
margin-bottom: 1em;
|
41
|
+
}
|
42
|
+
|
43
|
+
#banner .title {
|
44
|
+
font-size: x-large;
|
45
|
+
}
|
46
|
+
|
47
|
+
#banner .title:first-letter {
|
48
|
+
font-size: 250%;
|
49
|
+
font-weight: normal;
|
50
|
+
float: left;
|
51
|
+
margin-top: -7px;
|
52
|
+
margin-bottom: -7px;
|
53
|
+
}
|
54
|
+
|
55
|
+
#banner .product {
|
56
|
+
font-weight: bold;
|
57
|
+
color: #FF7;
|
58
|
+
letter-spacing: 0.5em;
|
59
|
+
}
|
60
|
+
|
61
|
+
#banner .tagline {
|
62
|
+
font-style: italic;
|
63
|
+
font-size: large;
|
64
|
+
letter-spacing: 0.1em;
|
65
|
+
color: #FFF;
|
66
|
+
}
|
67
|
+
|
68
|
+
#banner .info {
|
69
|
+
color: white;
|
70
|
+
font-size: small;
|
71
|
+
padding-right: 1em;
|
72
|
+
}
|
73
|
+
|
74
|
+
#content {
|
75
|
+
margin-left: 0cm;
|
76
|
+
margin-right: 1cm;
|
77
|
+
}
|
78
|
+
|
79
|
+
#navigation {
|
80
|
+
font-size: x-small;
|
81
|
+
border-right: 2px groove black;
|
82
|
+
border-top: 2px groove black;
|
83
|
+
margin-right: 1em;
|
84
|
+
width: 200px;
|
85
|
+
height: 100%;
|
86
|
+
background: #FFD;
|
87
|
+
}
|
88
|
+
|
89
|
+
#navigation ul, #navigation ol {
|
90
|
+
margin-left: 1.2em;
|
91
|
+
padding-left: 1.2em;
|
92
|
+
}
|
93
|
+
|
94
|
+
#navigation .license {
|
95
|
+
font-size: x-small;
|
96
|
+
text-align: center;
|
97
|
+
border-top: 1px dashed #005;
|
98
|
+
margin-top: 2em;
|
99
|
+
padding: 1em;
|
100
|
+
}
|
101
|
+
|
102
|
+
.section {
|
103
|
+
margin-bottom: 1em;
|
104
|
+
}
|
105
|
+
|
106
|
+
.section p {
|
107
|
+
text-align: justify;
|
108
|
+
}
|
109
|
+
|
110
|
+
#content pre {
|
111
|
+
background: #FFE;
|
112
|
+
border: 1px dotted #AAA;
|
113
|
+
padding: 1em;
|
114
|
+
}
|
115
|
+
|
116
|
+
#content h1 {
|
117
|
+
background: #005;
|
118
|
+
color: #FFF;
|
119
|
+
font-size: x-large;
|
120
|
+
font-weight: bold;
|
121
|
+
font-variant: small-caps;
|
122
|
+
padding: 0.5em;
|
123
|
+
border: 1px solid #000;
|
124
|
+
margin-top: 0px;
|
125
|
+
margin-bottom: 1em;
|
126
|
+
}
|
127
|
+
|
128
|
+
#content h2 {
|
129
|
+
background: #005;
|
130
|
+
color: #FFF;
|
131
|
+
font-size: large;
|
132
|
+
font-weight: bold;
|
133
|
+
font-variant: small-caps;
|
134
|
+
padding: 0.25em;
|
135
|
+
padding-left: 0.5em;
|
136
|
+
border: 1px solid #000;
|
137
|
+
margin-bottom: 1em;
|
138
|
+
}
|
139
|
+
|
140
|
+
#content h3 {
|
141
|
+
background: #FFD;
|
142
|
+
color: #000;
|
143
|
+
font-size: normal;
|
144
|
+
font-weight: bold;
|
145
|
+
font-variant: small-caps;
|
146
|
+
padding: 0.25em;
|
147
|
+
padding-left: 0.5em;
|
148
|
+
border: 1px dotted #000;
|
149
|
+
margin-bottom: 1em;
|
150
|
+
}
|
151
|
+
|
152
|
+
#content h4 {
|
153
|
+
background: #FFE;
|
154
|
+
color: #000;
|
155
|
+
font-size: normal;
|
156
|
+
font-weight: bold;
|
157
|
+
font-variant: small-caps;
|
158
|
+
padding: 0.25em;
|
159
|
+
padding-left: 0.5em;
|
160
|
+
border: 1px dotted #777;
|
161
|
+
margin-bottom: 1em;
|
162
|
+
}
|
163
|
+
|
164
|
+
#navigation h1 {
|
165
|
+
margin: 0px;
|
166
|
+
padding: 1em;
|
167
|
+
color: #005;
|
168
|
+
background: transparent;
|
169
|
+
font-weight: bold;
|
170
|
+
font-size: 150%;
|
171
|
+
font-variant: small-caps;
|
172
|
+
text-align: center;
|
173
|
+
}
|
174
|
+
|
175
|
+
#navigation h2 {
|
176
|
+
margin: 0px;
|
177
|
+
margin-bottom: 1em;
|
178
|
+
padding: 0.5em;
|
179
|
+
border-top: 1px dashed #005;
|
180
|
+
border-bottom: 1px dashed #005;
|
181
|
+
color: #005;
|
182
|
+
background: transparent;
|
183
|
+
font-weight: bold;
|
184
|
+
font-size: 125%;
|
185
|
+
font-variant: small-caps;
|
186
|
+
text-align: center;
|
187
|
+
}
|
188
|
+
|
189
|
+
table.list td {
|
190
|
+
border-bottom: 1px dotted #005;
|
191
|
+
padding-bottom: 5px;
|
192
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<h1><%= object.index %>. <%= object.title %></h1>
|
2
|
+
|
3
|
+
<% object.sections.each do |section|
|
4
|
+
|
5
|
+
if section.title %>
|
6
|
+
|
7
|
+
<h2>
|
8
|
+
<a name="s<%= section.index %>"></a>
|
9
|
+
<%= object.index %>.<%= section.index %>. <%= section.title %>
|
10
|
+
</h2>
|
11
|
+
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<div class="section">
|
15
|
+
<%= section.content.to_html %>
|
16
|
+
</div>
|
17
|
+
|
18
|
+
<% end %>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<h1>Example #<%= object.index %>. <%= object.title %></h1>
|
2
|
+
|
3
|
+
<h2>Introduction</h2>
|
4
|
+
|
5
|
+
<%= object.intro.to_html %>
|
6
|
+
|
7
|
+
<h2>Design</h2>
|
8
|
+
|
9
|
+
<%= object.design.to_html %>
|
10
|
+
|
11
|
+
<h2>Implementation</h2>
|
12
|
+
|
13
|
+
<%= object.implementation.to_html %>
|
14
|
+
|
15
|
+
<h2>Summary</h2>
|
16
|
+
|
17
|
+
<%= object.summary.to_html %>
|
18
|
+
|