js-get 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,25 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>new (App)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File bin/js-get, line 53</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">arguments</span>, <span class="ruby-identifier">stdin</span>)
15
+ <span class="ruby-ivar">@arguments</span> = <span class="ruby-identifier">arguments</span>
16
+ <span class="ruby-ivar">@stdin</span> = <span class="ruby-identifier">stdin</span>
17
+
18
+ <span class="ruby-comment cmt"># Set defaults</span>
19
+ <span class="ruby-ivar">@options</span> = <span class="ruby-constant">OpenStruct</span>.<span class="ruby-identifier">new</span>
20
+ <span class="ruby-ivar">@options</span>.<span class="ruby-identifier">verbose</span> = <span class="ruby-keyword kw">false</span>
21
+ <span class="ruby-ivar">@options</span>.<span class="ruby-identifier">quiet</span> = <span class="ruby-keyword kw">false</span>
22
+ <span class="ruby-comment cmt"># TO DO - add additional defaults</span>
23
+ <span class="ruby-keyword kw">end</span></pre>
24
+ </body>
25
+ </html>
@@ -0,0 +1,33 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>run (App)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File bin/js-get, line 65</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run</span>
15
+
16
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">parsed_options?</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">arguments_valid?</span>
17
+
18
+ <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;Start at #{DateTime.now}\n\n&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@options</span>.<span class="ruby-identifier">verbose</span>
19
+
20
+ <span class="ruby-identifier">output_options</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@options</span>.<span class="ruby-identifier">verbose</span> <span class="ruby-comment cmt"># [Optional]</span>
21
+
22
+ <span class="ruby-identifier">process_arguments</span>
23
+ <span class="ruby-identifier">process_command</span>
24
+
25
+ <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;\nFinished at #{DateTime.now}&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@options</span>.<span class="ruby-identifier">verbose</span>
26
+
27
+ <span class="ruby-keyword kw">else</span>
28
+ <span class="ruby-identifier">output_usage</span>
29
+ <span class="ruby-keyword kw">end</span>
30
+
31
+ <span class="ruby-keyword kw">end</span></pre>
32
+ </body>
33
+ </html>
@@ -0,0 +1,30 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>parsed_options? (App)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File bin/js-get, line 86</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parsed_options?</span>
15
+
16
+ <span class="ruby-comment cmt"># Specify options</span>
17
+ <span class="ruby-identifier">opts</span> = <span class="ruby-constant">OptionParser</span>.<span class="ruby-identifier">new</span>
18
+ <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">on</span>(<span class="ruby-value str">'-v'</span>, <span class="ruby-value str">'--version'</span>) { <span class="ruby-identifier">output_version</span> ; <span class="ruby-identifier">exit</span> <span class="ruby-value">0</span> }
19
+ <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">on</span>(<span class="ruby-value str">'-h'</span>, <span class="ruby-value str">'--help'</span>) { <span class="ruby-identifier">output_help</span> }
20
+ <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">on</span>(<span class="ruby-value str">'-V'</span>, <span class="ruby-value str">'--verbose'</span>) { <span class="ruby-ivar">@options</span>.<span class="ruby-identifier">verbose</span> = <span class="ruby-keyword kw">true</span> }
21
+ <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">on</span>(<span class="ruby-value str">'-q'</span>, <span class="ruby-value str">'--quiet'</span>) { <span class="ruby-ivar">@options</span>.<span class="ruby-identifier">quiet</span> = <span class="ruby-keyword kw">true</span> }
22
+ <span class="ruby-comment cmt"># TO DO - add additional options</span>
23
+
24
+ <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">parse!</span>(<span class="ruby-ivar">@arguments</span>) <span class="ruby-keyword kw">rescue</span> <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
25
+
26
+ <span class="ruby-identifier">process_options</span>
27
+ <span class="ruby-keyword kw">true</span>
28
+ <span class="ruby-keyword kw">end</span></pre>
29
+ </body>
30
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>process_options (App)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File bin/js-get, line 103</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_options</span>
15
+ <span class="ruby-ivar">@options</span>.<span class="ruby-identifier">verbose</span> = <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@options</span>.<span class="ruby-identifier">quiet</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,22 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>output_options (App)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File bin/js-get, line 107</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">output_options</span>
15
+ <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;Options:\n&quot;</span>
16
+
17
+ <span class="ruby-ivar">@options</span>.<span class="ruby-identifier">marshal_dump</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span>, <span class="ruby-identifier">val</span><span class="ruby-operator">|</span>
18
+ <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot; #{name} = #{val}&quot;</span>
19
+ <span class="ruby-keyword kw">end</span>
20
+ <span class="ruby-keyword kw">end</span></pre>
21
+ </body>
22
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>arguments_valid? (App)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File bin/js-get, line 116</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">arguments_valid?</span>
15
+ <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> [<span class="ruby-value str">'install'</span>,<span class="ruby-value str">'list'</span>,<span class="ruby-value str">'uninstall'</span>].<span class="ruby-identifier">include?</span>(<span class="ruby-ivar">@arguments</span>[<span class="ruby-value">0</span>])
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>process_arguments (App)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File bin/js-get, line 121</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_arguments</span>
15
+ <span class="ruby-comment cmt"># TO DO - place in local vars, etc</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,19 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>output_help (App)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File bin/js-get, line 125</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">output_help</span>
15
+ <span class="ruby-identifier">output_version</span>
16
+ <span class="ruby-constant">RDoc</span><span class="ruby-operator">::</span><span class="ruby-identifier">usage</span>() <span class="ruby-comment cmt">#exits app</span>
17
+ <span class="ruby-keyword kw">end</span></pre>
18
+ </body>
19
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>output_usage (App)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File bin/js-get, line 130</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">output_usage</span>
15
+ <span class="ruby-constant">RDoc</span><span class="ruby-operator">::</span><span class="ruby-identifier">usage</span>(<span class="ruby-value str">'usage'</span>) <span class="ruby-comment cmt"># gets usage from comments above</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>output_version (App)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File bin/js-get, line 134</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">output_version</span>
15
+ <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;#{File.basename(__FILE__)} version #{VERSION}&quot;</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>process_command (App)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File bin/js-get, line 138</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_command</span>
15
+ <span class="ruby-identifier">send</span>(<span class="ruby-ivar">@arguments</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">to_sym</span>)
16
+
17
+ <span class="ruby-comment cmt">#process_standard_input # [Optional]</span>
18
+ <span class="ruby-keyword kw">end</span></pre>
19
+ </body>
20
+ </html>
@@ -0,0 +1,28 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>install (App)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File bin/js-get, line 144</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">install</span>
15
+ <span class="ruby-comment cmt"># Install Javascript</span>
16
+ <span class="ruby-identifier">js_name</span> = <span class="ruby-ivar">@arguments</span>[<span class="ruby-value">1</span>]
17
+ <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;Installing Javascript - #{js_name}&quot;</span>
18
+ <span class="ruby-identifier">jlib</span> = <span class="ruby-constant">Crack</span><span class="ruby-operator">::</span><span class="ruby-constant">JSON</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-constant">RestClient</span>.<span class="ruby-identifier">get</span>(<span class="ruby-node">&quot;#{HOST}/scripts/#{js_name}&quot;</span>))
19
+ <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkpath</span>(<span class="ruby-constant">JSDIR</span>)
20
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>([<span class="ruby-constant">JSDIR</span>, <span class="ruby-node">&quot;#{js_name}.js&quot;</span>].<span class="ruby-identifier">join</span>(<span class="ruby-value str">'/'</span>), <span class="ruby-value str">'w'</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
21
+ <span class="ruby-identifier">f</span>.<span class="ruby-identifier">write</span>(<span class="ruby-constant">RestClient</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">jlib</span>[<span class="ruby-value str">&quot;src_url&quot;</span>]))
22
+ <span class="ruby-keyword kw">end</span>
23
+ <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;Successfully Installed - #{js_name}&quot;</span>
24
+ <span class="ruby-keyword kw">rescue</span>
25
+ <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;Could not locate javascript library on #{HOST}&quot;</span>
26
+ <span class="ruby-keyword kw">end</span></pre>
27
+ </body>
28
+ </html>
@@ -0,0 +1,22 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>list (App)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File bin/js-get, line 158</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">list</span>
15
+ <span class="ruby-comment cmt"># List Libraries</span>
16
+ <span class="ruby-identifier">libraries</span> = <span class="ruby-constant">Crack</span><span class="ruby-operator">::</span><span class="ruby-constant">JSON</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-constant">RestClient</span>.<span class="ruby-identifier">get</span>(<span class="ruby-node">&quot;#{HOST}/scripts&quot;</span>))
17
+ <span class="ruby-identifier">libraries</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">lib</span><span class="ruby-operator">|</span>
18
+ <span class="ruby-identifier">puts</span> <span class="ruby-identifier">lib</span>[<span class="ruby-value str">&quot;name&quot;</span>]
19
+ <span class="ruby-keyword kw">end</span>
20
+ <span class="ruby-keyword kw">end</span></pre>
21
+ </body>
22
+ </html>
@@ -0,0 +1,23 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>uninstall (App)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File bin/js-get, line 166</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">uninstall</span>
15
+ <span class="ruby-identifier">js_name</span> = <span class="ruby-ivar">@argument</span>[<span class="ruby-value">1</span>]
16
+ <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;Removing Javascript - #{js_name}&quot;</span>
17
+ <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">rm</span> <span class="ruby-node">%w{ [JSDIR,&quot;#{js_name}.js&quot;].join('/') }</span>
18
+ <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;Successfully removed javascript library - #{js_name}&quot;</span>
19
+ <span class="ruby-keyword kw">rescue</span>
20
+ <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;Could not remove javascript library&quot;</span>
21
+ <span class="ruby-keyword kw">end</span></pre>
22
+ </body>
23
+ </html>
@@ -0,0 +1,24 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>process_standard_input (App)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File bin/js-get, line 175</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_standard_input</span>
15
+ <span class="ruby-identifier">input</span> = <span class="ruby-ivar">@stdin</span>.<span class="ruby-identifier">read</span>
16
+ <span class="ruby-comment cmt"># TO DO - process input</span>
17
+
18
+ <span class="ruby-comment cmt"># [Optional]</span>
19
+ <span class="ruby-comment cmt">#@stdin.each do |line| </span>
20
+ <span class="ruby-comment cmt"># # TO DO - process each line</span>
21
+ <span class="ruby-comment cmt">#end</span>
22
+ <span class="ruby-keyword kw">end</span></pre>
23
+ </body>
24
+ </html>
@@ -0,0 +1 @@
1
+ Thu, 22 Oct 2009 07:16:05 -0400
@@ -0,0 +1,153 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>File: js-get</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="fileHeader">
50
+ <h1>js-get</h1>
51
+ <table class="header-table">
52
+ <tr class="top-aligned-row">
53
+ <td><strong>Path:</strong></td>
54
+ <td>bin/js-get
55
+ </td>
56
+ </tr>
57
+ <tr class="top-aligned-row">
58
+ <td><strong>Last Update:</strong></td>
59
+ <td>Thu Oct 22 06:59:47 -0400 2009</td>
60
+ </tr>
61
+ </table>
62
+ </div>
63
+ <!-- banner header -->
64
+
65
+ <div id="bodyContent">
66
+
67
+
68
+
69
+ <div id="contextContent">
70
+
71
+ <div id="description">
72
+ <h2>Synopsis</h2>
73
+ <pre>
74
+ This is a command line application that helps install javascript in your app.
75
+ </pre>
76
+ <h2>Examples</h2>
77
+ <pre>
78
+ This command does install jquery in your public/javascripts folder.
79
+ js-get install jquery
80
+
81
+ Other examples:
82
+ js-get list
83
+ js-get uninstall jquery
84
+ </pre>
85
+ <h2>Usage</h2>
86
+ <pre>
87
+ js-get [options] list|install|uninstall javascript_name
88
+
89
+ For help use: js-get --help
90
+ </pre>
91
+ <h2>Options</h2>
92
+ <pre>
93
+ -h, --help Displays help message
94
+ -v, --version Displays version
95
+ -q, --quiet Output as little as possible, overrides verbose
96
+ -V, --verbose Verbose output
97
+ TO DO - add additional options
98
+ </pre>
99
+ <h2>Author</h2>
100
+ <pre>
101
+ Tom Wilson
102
+ </pre>
103
+ <h2>Copyright</h2>
104
+ <pre>
105
+ Copyright (c) 2008 Jack Russell Software Company. Licensed under the MIT License:
106
+ http://www.opensource.org/licenses/mit-license.php
107
+ </pre>
108
+
109
+ </div>
110
+
111
+ <div id="requires-list">
112
+ <h3 class="section-bar">Required files</h3>
113
+
114
+ <div class="name-list">
115
+ optparse&nbsp;&nbsp;
116
+ rdoc/usage&nbsp;&nbsp;
117
+ ostruct&nbsp;&nbsp;
118
+ date&nbsp;&nbsp;
119
+ rest_client&nbsp;&nbsp;
120
+ crack&nbsp;&nbsp;
121
+ fileutils&nbsp;&nbsp;
122
+ </div>
123
+ </div>
124
+
125
+ </div>
126
+
127
+
128
+ </div>
129
+
130
+
131
+ <!-- if includes -->
132
+
133
+ <div id="section">
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+ <!-- if method_list -->
143
+
144
+
145
+ </div>
146
+
147
+
148
+ <div id="validator-badges">
149
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
150
+ </div>
151
+
152
+ </body>
153
+ </html>