drydock 0.3.3 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,118 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
- <html lang='en'>
3
- <head>
4
- <title>Class: Drydock::UnknownCommand [A seaworthy DSL for writing command line apps]</title>
5
- <meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
6
- <link href='../.././rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
7
- <script type='text/javascript'>
8
- //<![CDATA[
9
- function popupCode(url) {
10
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
11
- }
12
-
13
- function toggleCode(id) {
14
- var code = document.getElementById(id)
15
-
16
- code.style.display = code.style.display != 'block' ? 'block' : 'none'
17
- return true
18
- }
19
-
20
- // Make codeblocks hidden by default
21
- document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
22
- //]]>
23
- </script>
24
- </head>
25
- <body class='page'>
26
- <div class='class' id='wrapper'>
27
- <div class='header'>
28
- <h1 class='name'>
29
- <span class='type'>Class</span>
30
- Drydock::UnknownCommand
31
- </h1>
32
- <ol class='paths'>
33
- <li>
34
- <a href="../../files/lib/drydock_rb.html">lib/drydock.rb</a>
35
- </li>
36
- </ol>
37
- <div class='parent'>
38
- Parent:
39
- <strong>RuntimeError</strong>
40
- </div>
41
- </div>
42
- <div id='content'>
43
- <div id='text'>
44
- <div id='method-list'>
45
- <h2>Methods</h2>
46
- <h3>public class</h3>
47
- <ol>
48
- <li><a href="#M000021">new</a></li>
49
- </ol>
50
- <h3>public instance</h3>
51
- <ol>
52
- <li><a href="#M000022">message</a></li>
53
- </ol>
54
- </div>
55
- <div id='section'>
56
- <div id='attribute-list'>
57
- <h2 class='section-bar'>Attributes</h2>
58
- <div class='name-list'>
59
- <table>
60
- <tr class='top-aligned-row context-row'>
61
- <td class='context-item-name'>name</td>
62
- <td class='context-item-value'>[R]</td>
63
- <td class='context-item-desc'></td>
64
- </tr>
65
- </table>
66
- </div>
67
- </div>
68
- <div id='methods'>
69
- <h2>Public class methods</h2>
70
- <div class='public-class method' id='method-M000021'>
71
- <a name='M000021'> </a>
72
- <div class='synopsis'>
73
- <span class='name'>new</span>
74
- <span class='arguments'>(name)</span>
75
- </div>
76
- <div class='source'>
77
- <a class='source-toggle' href='#' onclick="toggleCode('M000021-source'); return false">
78
- [show source]
79
- </a>
80
- <pre id='M000021-source'> <span class="ruby-comment cmt"># File lib/drydock.rb, line 73</span>&#x000A;73: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span>)&#x000A;74: <span class="ruby-ivar">@name</span> = <span class="ruby-identifier">name</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">:unknown</span>&#x000A;75: <span class="ruby-keyword kw">end</span></pre>
81
- </div>
82
- </div>
83
- <h2>Public instance methods</h2>
84
- <div class='public-instance method' id='method-M000022'>
85
- <a name='M000022'> </a>
86
- <div class='synopsis'>
87
- <span class='name'>message</span>
88
- <span class='arguments'>()</span>
89
- </div>
90
- <div class='source'>
91
- <a class='source-toggle' href='#' onclick="toggleCode('M000022-source'); return false">
92
- [show source]
93
- </a>
94
- <pre id='M000022-source'> <span class="ruby-comment cmt"># File lib/drydock.rb, line 76</span>&#x000A;76: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">message</span>&#x000A;77: <span class="ruby-node">&quot;Unknown command: #{@name}&quot;</span>&#x000A;78: <span class="ruby-keyword kw">end</span></pre>
95
- </div>
96
- </div>
97
- </div>
98
- </div>
99
- </div>
100
- </div>
101
- <div id='footer-push'></div>
102
- </div>
103
- <div id='footer'>
104
- <a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
105
- <script type='text/javascript'>
106
- //<![CDATA[
107
- var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
108
- document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/scr
109
-
110
- try {
111
- var pageTracker = _gat._getTracker("UA-4642735-10");
112
- pageTracker._trackPageview();
113
- } catch(err) {}
114
- //]]>
115
- </script>
116
- </div>
117
- </body>
118
- </html>
data/doc/created.rid DELETED
@@ -1 +0,0 @@
1
- Sat, 14 Feb 2009 14:11:12 -0500
@@ -1,123 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
- <html lang='en'>
3
- <head>
4
- <title>File: CHANGES.txt [A seaworthy DSL for writing command line apps]</title>
5
- <meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
6
- <link href='.././rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
7
- <script type='text/javascript'>
8
- //<![CDATA[
9
- function popupCode(url) {
10
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
11
- }
12
-
13
- function toggleCode(id) {
14
- var code = document.getElementById(id)
15
-
16
- code.style.display = code.style.display != 'block' ? 'block' : 'none'
17
- return true
18
- }
19
-
20
- // Make codeblocks hidden by default
21
- document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
22
- //]]>
23
- </script>
24
- </head>
25
- <body class='page'>
26
- <div class='file' id='wrapper'>
27
- <div class='header'>
28
- <h1 class='name'>CHANGES.txt</h1>
29
- <div class='paths'>
30
- CHANGES.txt
31
- </div>
32
- <div class='last-update'>
33
- Last Update:
34
- <span class='datetime'>Sat Feb 14 14:08:44 -0500 2009</span>
35
- </div>
36
- </div>
37
- <div id='content'>
38
- <div id='text'>
39
- <div id='description'>
40
- <p>
41
- DRYDOCK, CHANGES
42
- </p>
43
- <p>
44
- TODO:
45
- </p>
46
- <ul>
47
- <li>Fix &#8217;-&#8217; &#8216;_&#8217; ambiguity for option names
48
-
49
- </li>
50
- <li>Calls valid? method (if present) before calling command block.
51
-
52
- </li>
53
- </ul>
54
- <p>
55
- #### 0.3.3 (2009-02-14) ###############################
56
- </p>
57
- <ul>
58
- <li>NEW: init method hook for subclasses of <a
59
- href="../classes/Drydock/Command.html">Drydock::Command</a>
60
-
61
- </li>
62
- <li>UPDATED: Rdocs
63
-
64
- </li>
65
- </ul>
66
- <p>
67
- #### 0.3 (2009-02-05) ###############################
68
- </p>
69
- <ul>
70
- <li>Added support for custom Drydock::Commands objects
71
-
72
- </li>
73
- <li>Global and command-specific options are now available as attributes of the
74
- Drydock::Commands class instance.
75
-
76
- </li>
77
- <li>Automatic execution
78
-
79
- </li>
80
- <li>Now in a single file (<a href="lib/drydock_rb.html">lib/drydock.rb</a>)
81
-
82
- </li>
83
- <li>Started adding tests
84
-
85
- </li>
86
- <li>Improved documentation
87
-
88
- </li>
89
- </ul>
90
- <p>
91
- #### 0.2 (2008-12-27) ###############################
92
- </p>
93
- <ul>
94
- <li>Initial release
95
-
96
- </li>
97
- <li>Forked from bmizerany/frylock
98
-
99
- </li>
100
- </ul>
101
- </div>
102
- <div id='section'>
103
- </div>
104
- </div>
105
- </div>
106
- <div id='footer-push'></div>
107
- </div>
108
- <div id='footer'>
109
- <a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
110
- <script type='text/javascript'>
111
- //<![CDATA[
112
- var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
113
- document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/scr
114
-
115
- try {
116
- var pageTracker = _gat._getTracker("UA-4642735-10");
117
- pageTracker._trackPageview();
118
- } catch(err) {}
119
- //]]>
120
- </script>
121
- </div>
122
- </body>
123
- </html>
@@ -1,87 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
- <html lang='en'>
3
- <head>
4
- <title>File: LICENSE.txt [A seaworthy DSL for writing command line apps]</title>
5
- <meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
6
- <link href='.././rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
7
- <script type='text/javascript'>
8
- //<![CDATA[
9
- function popupCode(url) {
10
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
11
- }
12
-
13
- function toggleCode(id) {
14
- var code = document.getElementById(id)
15
-
16
- code.style.display = code.style.display != 'block' ? 'block' : 'none'
17
- return true
18
- }
19
-
20
- // Make codeblocks hidden by default
21
- document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
22
- //]]>
23
- </script>
24
- </head>
25
- <body class='page'>
26
- <div class='file' id='wrapper'>
27
- <div class='header'>
28
- <h1 class='name'>LICENSE.txt</h1>
29
- <div class='paths'>
30
- LICENSE.txt
31
- </div>
32
- <div class='last-update'>
33
- Last Update:
34
- <span class='datetime'>Fri Feb 06 13:02:40 -0500 2009</span>
35
- </div>
36
- </div>
37
- <div id='content'>
38
- <div id='text'>
39
- <div id='description'>
40
- <p>
41
- Copyright &#169; 2008 Delano Mandelbaum
42
- </p>
43
- <p>
44
- Permission is hereby granted, free of charge, to any person obtaining a
45
- copy of this software and associated documentation files (the
46
- &#8220;Software&#8221;), to deal in the Software without restriction,
47
- including without limitation the rights to use, copy, modify, merge,
48
- publish, distribute, sublicense, and/or sell copies of the Software, and to
49
- permit persons to whom the Software is furnished to do so, subject to the
50
- following conditions:
51
- </p>
52
- <p>
53
- The above copyright notice and this permission notice shall be included in
54
- all copies or substantial portions of the Software.
55
- </p>
56
- <p>
57
- THE SOFTWARE IS PROVIDED &#8220;AS IS&#8221;, WITHOUT WARRANTY OF ANY KIND,
58
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
59
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
60
- NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
61
- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
62
- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
63
- USE OR OTHER DEALINGS IN THE SOFTWARE.
64
- </p>
65
- </div>
66
- <div id='section'>
67
- </div>
68
- </div>
69
- </div>
70
- <div id='footer-push'></div>
71
- </div>
72
- <div id='footer'>
73
- <a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
74
- <script type='text/javascript'>
75
- //<![CDATA[
76
- var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
77
- document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/scr
78
-
79
- try {
80
- var pageTracker = _gat._getTracker("UA-4642735-10");
81
- pageTracker._trackPageview();
82
- } catch(err) {}
83
- //]]>
84
- </script>
85
- </div>
86
- </body>
87
- </html>
@@ -1,127 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
- <html lang='en'>
3
- <head>
4
- <title>File: README.rdoc [A seaworthy DSL for writing command line apps]</title>
5
- <meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
6
- <link href='.././rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
7
- <script type='text/javascript'>
8
- //<![CDATA[
9
- function popupCode(url) {
10
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
11
- }
12
-
13
- function toggleCode(id) {
14
- var code = document.getElementById(id)
15
-
16
- code.style.display = code.style.display != 'block' ? 'block' : 'none'
17
- return true
18
- }
19
-
20
- // Make codeblocks hidden by default
21
- document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
22
- //]]>
23
- </script>
24
- </head>
25
- <body class='page'>
26
- <div class='file' id='wrapper'>
27
- <div class='header'>
28
- <div class='name'>README.rdoc</div>
29
- <div class='paths'>
30
- README.rdoc
31
- </div>
32
- <div class='last-update'>
33
- Last Update:
34
- <span class='datetime'>Fri Feb 06 13:05:47 -0500 2009</span>
35
- </div>
36
- </div>
37
- <div id='content'>
38
- <div id='text'>
39
- <div id='description'>
40
- <h1><a href="../classes/Drydock.html">Drydock</a> - v0.3</h1>
41
- <p>
42
- Inspired by github-gem and bmizerany-frylock.
43
- </p>
44
- <h2>Overview</h2>
45
- <p>
46
- <a href="../classes/Drydock.html">Drydock</a> is a seaworthy DSL for
47
- command line apps. It is contained in a single .rb which can be copied
48
- directly into your project.
49
- </p>
50
- <h2>Install</h2>
51
- <p>
52
- One of:
53
- </p>
54
- <ul>
55
- <li>gem install drydock
56
-
57
- </li>
58
- <li>copy <a href="lib/drydock_rb.html">lib/drydock.rb</a> into your lib
59
- directory.
60
-
61
- </li>
62
- </ul>
63
- <p>
64
- Or for GitHub fans:
65
- </p>
66
- <ul>
67
- <li>git clone git://github.com/delano/drydock.git
68
-
69
- </li>
70
- <li>gem install delano-drydock
71
-
72
- </li>
73
- </ul>
74
- <h2>Examples</h2>
75
- <p>
76
- See <a href="bin/example.html">bin/example</a> for more.
77
- </p>
78
- <pre>require 'drydock'&#x000A;&#x000A;default :welcome&#x000A;&#x000A;before do&#x000A;# You can execute a block before the requests command is executed. Instance&#x000A;# variables defined here will be available to all commands.&#x000A;end&#x000A;&#x000A;command :welcome do&#x000A;# Example: ruby bin/example&#x000A;&#x000A; puts &quot;Welcome to Drydock. You have the following commands:&quot;&#x000A;&#x000A; # The commands method returns a hash of Drydock::Command objects&#x000A; puts commands.keys.inject([]) { |list, command| list &lt;&lt; command.to_s }.sort.join(', ')&#x000A;end&#x000A;&#x000A;usage &quot;Example: #{$0} laugh [-f]&quot;&#x000A;option :f, :faster, &quot;A boolean value. Go even faster!&quot;&#x000A;command :laugh do |obj|&#x000A;# +obj+ is an instance of Drydock::Command. The options you define are available&#x000A;# via accessors in this object.&#x000A;&#x000A; answer = !obj.faster ? &quot;Sort of&quot; : &quot;Yes! I'm literally laughing as fast as possible.&quot;&#x000A;&#x000A; puts &quot;Captain Stubing: Are you laughing?&quot;&#x000A; puts &quot;Dr. Bricker: &quot; &lt;&lt; answer&#x000A;end&#x000A;&#x000A;class JohnWestSmokedOysters &lt; Drydock::Command; end;&#x000A;# You can write your own command classes by inheriting from Drydock::Command&#x000A;# and referencing it in the command definition.&#x000A;&#x000A;command :oysters =&gt; JohnWestSmokedOysters do |obj|&#x000A; p obj # =&gt; #&lt;JohnWestSmokedOysters:0x42179c ... &gt;&#x000A;end</pre>
79
- <h2>More Information</h2>
80
- <ul>
81
- <li><a href="http://github.com/delano/drydock">github.com/delano/drydock</a>
82
-
83
- </li>
84
- <li><a href="http://drydock.rubyforge.org/">drydock.rubyforge.org/</a> (rdocs)
85
-
86
- </li>
87
- <li><a
88
- href="http://www.youtube.com/watch?v=m_wFEB4Oxlo">www.youtube.com/watch?v=m_wFEB4Oxlo</a>
89
-
90
- </li>
91
- </ul>
92
- <h2>Credits</h2>
93
- <ul>
94
- <li>Delano Mandelbaum (delano@solutious.com)
95
-
96
- </li>
97
- <li>Bernie Kopell (bernie@solutious.com)
98
-
99
- </li>
100
- </ul>
101
- <h2>License</h2>
102
- <p>
103
- See <a href="LICENSE_txt.html">LICENSE.txt</a>
104
- </p>
105
- </div>
106
- <div id='section'>
107
- </div>
108
- </div>
109
- </div>
110
- <div id='footer-push'></div>
111
- </div>
112
- <div id='footer'>
113
- <a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
114
- <script type='text/javascript'>
115
- //<![CDATA[
116
- var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
117
- document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/scr
118
-
119
- try {
120
- var pageTracker = _gat._getTracker("UA-4642735-10");
121
- pageTracker._trackPageview();
122
- } catch(err) {}
123
- //]]>
124
- </script>
125
- </div>
126
- </body>
127
- </html>