swift-manager 0.0.4
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 +2 -0
- data/Gemfile +19 -0
- data/LICENSE +201 -0
- data/README.md +56 -0
- data/README.rdoc +8 -0
- data/Rakefile +38 -0
- data/bin/swift-manager +337 -0
- data/docs/examples.txt +407 -0
- data/html/CloudShell.html +308 -0
- data/html/CloudShell/Context.html +403 -0
- data/html/Configurator.html +270 -0
- data/html/Formatter.html +272 -0
- data/html/Object.html +165 -0
- data/html/Parser.html +291 -0
- data/html/README_rdoc.html +102 -0
- data/html/SwiftClient.html +656 -0
- data/html/SwiftManager.html +181 -0
- data/html/bin/swift-manager.html +103 -0
- data/html/created.rid +9 -0
- data/html/images/brick.png +0 -0
- data/html/images/brick_link.png +0 -0
- data/html/images/bug.png +0 -0
- data/html/images/bullet_black.png +0 -0
- data/html/images/bullet_toggle_minus.png +0 -0
- data/html/images/bullet_toggle_plus.png +0 -0
- data/html/images/date.png +0 -0
- data/html/images/find.png +0 -0
- data/html/images/loadingAnimation.gif +0 -0
- data/html/images/macFFBgHack.png +0 -0
- data/html/images/package.png +0 -0
- data/html/images/page_green.png +0 -0
- data/html/images/page_white_text.png +0 -0
- data/html/images/page_white_width.png +0 -0
- data/html/images/plugin.png +0 -0
- data/html/images/ruby.png +0 -0
- data/html/images/tag_green.png +0 -0
- data/html/images/wrench.png +0 -0
- data/html/images/wrench_orange.png +0 -0
- data/html/images/zoom.png +0 -0
- data/html/index.html +119 -0
- data/html/js/darkfish.js +116 -0
- data/html/js/jquery.js +32 -0
- data/html/js/quicksearch.js +114 -0
- data/html/js/thickbox-compressed.js +10 -0
- data/html/lib/cloud_shell_rb.html +75 -0
- data/html/lib/configurator_rb.html +75 -0
- data/html/lib/formatter_rb.html +75 -0
- data/html/lib/parser_rb.html +75 -0
- data/html/lib/swift-manager_version_rb.html +75 -0
- data/html/lib/swift_client_rb.html +75 -0
- data/html/rdoc.css +763 -0
- data/lib/cloud_shell.rb +127 -0
- data/lib/configurator.rb +69 -0
- data/lib/formatter.rb +42 -0
- data/lib/parser.rb +60 -0
- data/lib/swift-manager_version.rb +21 -0
- data/lib/swift_client.rb +172 -0
- data/swift-manager.gemspec +48 -0
- data/swift-manager.rdoc +2 -0
- data/test/tc_nothing.rb +14 -0
- metadata +174 -0
data/html/Formatter.html
ADDED
@@ -0,0 +1,272 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
7
|
+
|
8
|
+
<title>Class: Formatter</title>
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
11
|
+
|
12
|
+
<script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
|
13
|
+
<script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
14
|
+
<script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
15
|
+
<script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body id="top" class="class">
|
19
|
+
|
20
|
+
<div id="metadata">
|
21
|
+
<div id="home-metadata">
|
22
|
+
<div id="home-section" class="section">
|
23
|
+
<h3 class="section-header">
|
24
|
+
<a href="./index.html">Home</a>
|
25
|
+
<a href="./index.html#classes">Classes</a>
|
26
|
+
<a href="./index.html#methods">Methods</a>
|
27
|
+
</h3>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div id="file-metadata">
|
32
|
+
<div id="file-list-section" class="section">
|
33
|
+
<h3 class="section-header">In Files</h3>
|
34
|
+
<div class="section-body">
|
35
|
+
<ul>
|
36
|
+
|
37
|
+
<li><a href="./lib/formatter_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
+
class="thickbox" title="lib/formatter.rb">lib/formatter.rb</a></li>
|
39
|
+
|
40
|
+
</ul>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<div id="class-metadata">
|
48
|
+
|
49
|
+
<!-- Parent Class -->
|
50
|
+
<div id="parent-class-section" class="section">
|
51
|
+
<h3 class="section-header">Parent</h3>
|
52
|
+
|
53
|
+
<p class="link"><a href="Object.html">Object</a></p>
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
<!-- Method Quickref -->
|
64
|
+
<div id="method-list-section" class="section">
|
65
|
+
<h3 class="section-header">Methods</h3>
|
66
|
+
<ul class="link-list">
|
67
|
+
|
68
|
+
<li><a href="#method-i-print_progress_bar_long">#print_progress_bar_long</a></li>
|
69
|
+
|
70
|
+
<li><a href="#method-i-print_progress_bar_short">#print_progress_bar_short</a></li>
|
71
|
+
|
72
|
+
</ul>
|
73
|
+
</div>
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
</div>
|
78
|
+
|
79
|
+
<div id="project-metadata">
|
80
|
+
|
81
|
+
|
82
|
+
<div id="fileindex-section" class="section project-section">
|
83
|
+
<h3 class="section-header">Files</h3>
|
84
|
+
<ul>
|
85
|
+
|
86
|
+
<li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
|
87
|
+
|
88
|
+
</ul>
|
89
|
+
</div>
|
90
|
+
|
91
|
+
|
92
|
+
<div id="classindex-section" class="section project-section">
|
93
|
+
<h3 class="section-header">Class/Module Index
|
94
|
+
<span class="search-toggle"><img src="./images/find.png"
|
95
|
+
height="16" width="16" alt="[+]"
|
96
|
+
title="show/hide quicksearch" /></span></h3>
|
97
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
98
|
+
<fieldset>
|
99
|
+
<legend>Quicksearch</legend>
|
100
|
+
<input type="text" name="quicksearch" value=""
|
101
|
+
class="quicksearch-field" />
|
102
|
+
</fieldset>
|
103
|
+
</form>
|
104
|
+
|
105
|
+
<ul class="link-list">
|
106
|
+
|
107
|
+
<li><a href="./CloudShell.html">CloudShell</a></li>
|
108
|
+
|
109
|
+
<li><a href="./CloudShell/Context.html">CloudShell::Context</a></li>
|
110
|
+
|
111
|
+
<li><a href="./Configurator.html">Configurator</a></li>
|
112
|
+
|
113
|
+
<li><a href="./Formatter.html">Formatter</a></li>
|
114
|
+
|
115
|
+
<li><a href="./Object.html">Object</a></li>
|
116
|
+
|
117
|
+
<li><a href="./Parser.html">Parser</a></li>
|
118
|
+
|
119
|
+
<li><a href="./SwiftClient.html">SwiftClient</a></li>
|
120
|
+
|
121
|
+
<li><a href="./SwiftManager.html">SwiftManager</a></li>
|
122
|
+
|
123
|
+
</ul>
|
124
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
125
|
+
</div>
|
126
|
+
|
127
|
+
|
128
|
+
</div>
|
129
|
+
</div>
|
130
|
+
|
131
|
+
<div id="documentation">
|
132
|
+
<h1 class="class">Formatter</h1>
|
133
|
+
|
134
|
+
<div id="description" class="description">
|
135
|
+
<table class="rdoc-list"><tr><td class="rdoc-term"><p>Author</p></td>
|
136
|
+
<td>
|
137
|
+
<p>Murali Raju (<murali.raju@appliv.com>)</p>
|
138
|
+
</td></tr><tr><td class="rdoc-term"><p>Copyright</p></td>
|
139
|
+
<td>
|
140
|
+
<p>Copyright © 2011 Murali Raju.</p>
|
141
|
+
</td></tr><tr><td class="rdoc-term"><p>License</p></td>
|
142
|
+
<td>
|
143
|
+
<p>Apache License, Version 2.0</p>
|
144
|
+
</td></tr></table>
|
145
|
+
|
146
|
+
<p>Licensed under the Apache License, Version 2.0 (the “License”); you may not
|
147
|
+
use this file except in compliance with the License. You may obtain a copy
|
148
|
+
of the License at</p>
|
149
|
+
|
150
|
+
<p><a
|
151
|
+
href="http://www.apache.org/licenses/LICENSE-2.0">www.apache.org/licenses/LICENSE-2.0</a></p>
|
152
|
+
|
153
|
+
<p>Unless required by applicable law or agreed to in writing, software
|
154
|
+
distributed under the License is distributed on an “AS IS” BASIS, WITHOUT
|
155
|
+
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
156
|
+
License for the specific language governing permissions and limitations
|
157
|
+
under the License.</p>
|
158
|
+
|
159
|
+
</div><!-- description -->
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
<div id="5Buntitled-5D" class="documentation-section">
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
<!-- Methods -->
|
174
|
+
|
175
|
+
<div id="public-instance-method-details" class="method-section section">
|
176
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
177
|
+
|
178
|
+
|
179
|
+
<div id="print_progress_bar_long-method" class="method-detail ">
|
180
|
+
<a name="method-i-print_progress_bar_long"></a>
|
181
|
+
|
182
|
+
|
183
|
+
<div class="method-heading">
|
184
|
+
<span class="method-name">print_progress_bar_long</span><span
|
185
|
+
class="method-args">()</span>
|
186
|
+
<span class="method-click-advice">click to toggle source</span>
|
187
|
+
</div>
|
188
|
+
|
189
|
+
|
190
|
+
<div class="method-description">
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
<div class="method-source-code" id="print_progress_bar_long-source">
|
197
|
+
<pre>
|
198
|
+
<span class="ruby-comment"># File lib/formatter.rb, line 23</span>
|
199
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">print_progress_bar_long</span>
|
200
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-string">''</span>
|
201
|
+
<span class="ruby-identifier">bar</span> = <span class="ruby-constant">ProgressBar</span>.<span class="ruby-identifier">new</span>
|
202
|
+
<span class="ruby-value">100</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword">do</span>
|
203
|
+
<span class="ruby-identifier">sleep</span> <span class="ruby-value">0.075</span>
|
204
|
+
<span class="ruby-identifier">bar</span>.<span class="ruby-identifier">increment!</span>
|
205
|
+
<span class="ruby-keyword">end</span>
|
206
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-string">''</span>
|
207
|
+
<span class="ruby-keyword">end</span></pre>
|
208
|
+
</div><!-- print_progress_bar_long-source -->
|
209
|
+
|
210
|
+
</div>
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
</div><!-- print_progress_bar_long-method -->
|
216
|
+
|
217
|
+
|
218
|
+
<div id="print_progress_bar_short-method" class="method-detail ">
|
219
|
+
<a name="method-i-print_progress_bar_short"></a>
|
220
|
+
|
221
|
+
|
222
|
+
<div class="method-heading">
|
223
|
+
<span class="method-name">print_progress_bar_short</span><span
|
224
|
+
class="method-args">()</span>
|
225
|
+
<span class="method-click-advice">click to toggle source</span>
|
226
|
+
</div>
|
227
|
+
|
228
|
+
|
229
|
+
<div class="method-description">
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
<div class="method-source-code" id="print_progress_bar_short-source">
|
236
|
+
<pre>
|
237
|
+
<span class="ruby-comment"># File lib/formatter.rb, line 33</span>
|
238
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">print_progress_bar_short</span>
|
239
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-string">''</span>
|
240
|
+
<span class="ruby-identifier">bar</span> = <span class="ruby-constant">ProgressBar</span>.<span class="ruby-identifier">new</span>
|
241
|
+
<span class="ruby-value">100</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword">do</span>
|
242
|
+
<span class="ruby-identifier">sleep</span> <span class="ruby-value">0.0055</span>
|
243
|
+
<span class="ruby-identifier">bar</span>.<span class="ruby-identifier">increment!</span>
|
244
|
+
<span class="ruby-keyword">end</span>
|
245
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-string">''</span>
|
246
|
+
<span class="ruby-keyword">end</span></pre>
|
247
|
+
</div><!-- print_progress_bar_short-source -->
|
248
|
+
|
249
|
+
</div>
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
</div><!-- print_progress_bar_short-method -->
|
255
|
+
|
256
|
+
|
257
|
+
</div><!-- public-instance-method-details -->
|
258
|
+
|
259
|
+
</div><!-- 5Buntitled-5D -->
|
260
|
+
|
261
|
+
|
262
|
+
</div><!-- documentation -->
|
263
|
+
|
264
|
+
<div id="validator-badges">
|
265
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
266
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
267
|
+
Rdoc Generator</a> 2</small>.</p>
|
268
|
+
</div>
|
269
|
+
|
270
|
+
</body>
|
271
|
+
</html>
|
272
|
+
|
data/html/Object.html
ADDED
@@ -0,0 +1,165 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
7
|
+
|
8
|
+
<title>Class: Object</title>
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
11
|
+
|
12
|
+
<script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
|
13
|
+
<script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
14
|
+
<script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
15
|
+
<script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body id="top" class="class">
|
19
|
+
|
20
|
+
<div id="metadata">
|
21
|
+
<div id="home-metadata">
|
22
|
+
<div id="home-section" class="section">
|
23
|
+
<h3 class="section-header">
|
24
|
+
<a href="./index.html">Home</a>
|
25
|
+
<a href="./index.html#classes">Classes</a>
|
26
|
+
<a href="./index.html#methods">Methods</a>
|
27
|
+
</h3>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div id="file-metadata">
|
32
|
+
<div id="file-list-section" class="section">
|
33
|
+
<h3 class="section-header">In Files</h3>
|
34
|
+
<div class="section-body">
|
35
|
+
<ul>
|
36
|
+
|
37
|
+
<li><a href="./bin/swift-manager.html?TB_iframe=true&height=550&width=785"
|
38
|
+
class="thickbox" title="bin/swift-manager">bin/swift-manager</a></li>
|
39
|
+
|
40
|
+
</ul>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<div id="class-metadata">
|
48
|
+
|
49
|
+
<!-- Parent Class -->
|
50
|
+
<div id="parent-class-section" class="section">
|
51
|
+
<h3 class="section-header">Parent</h3>
|
52
|
+
|
53
|
+
<p class="link">BasicObject</p>
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
<!-- Included Modules -->
|
66
|
+
<div id="includes-section" class="section">
|
67
|
+
<h3 class="section-header">Included Modules</h3>
|
68
|
+
<ul class="link-list">
|
69
|
+
|
70
|
+
|
71
|
+
<li><span class="include">GLI</span></li>
|
72
|
+
|
73
|
+
|
74
|
+
</ul>
|
75
|
+
</div>
|
76
|
+
|
77
|
+
</div>
|
78
|
+
|
79
|
+
<div id="project-metadata">
|
80
|
+
|
81
|
+
|
82
|
+
<div id="fileindex-section" class="section project-section">
|
83
|
+
<h3 class="section-header">Files</h3>
|
84
|
+
<ul>
|
85
|
+
|
86
|
+
<li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
|
87
|
+
|
88
|
+
</ul>
|
89
|
+
</div>
|
90
|
+
|
91
|
+
|
92
|
+
<div id="classindex-section" class="section project-section">
|
93
|
+
<h3 class="section-header">Class/Module Index
|
94
|
+
<span class="search-toggle"><img src="./images/find.png"
|
95
|
+
height="16" width="16" alt="[+]"
|
96
|
+
title="show/hide quicksearch" /></span></h3>
|
97
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
98
|
+
<fieldset>
|
99
|
+
<legend>Quicksearch</legend>
|
100
|
+
<input type="text" name="quicksearch" value=""
|
101
|
+
class="quicksearch-field" />
|
102
|
+
</fieldset>
|
103
|
+
</form>
|
104
|
+
|
105
|
+
<ul class="link-list">
|
106
|
+
|
107
|
+
<li><a href="./CloudShell.html">CloudShell</a></li>
|
108
|
+
|
109
|
+
<li><a href="./CloudShell/Context.html">CloudShell::Context</a></li>
|
110
|
+
|
111
|
+
<li><a href="./Configurator.html">Configurator</a></li>
|
112
|
+
|
113
|
+
<li><a href="./Formatter.html">Formatter</a></li>
|
114
|
+
|
115
|
+
<li><a href="./Object.html">Object</a></li>
|
116
|
+
|
117
|
+
<li><a href="./Parser.html">Parser</a></li>
|
118
|
+
|
119
|
+
<li><a href="./SwiftClient.html">SwiftClient</a></li>
|
120
|
+
|
121
|
+
<li><a href="./SwiftManager.html">SwiftManager</a></li>
|
122
|
+
|
123
|
+
</ul>
|
124
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
125
|
+
</div>
|
126
|
+
|
127
|
+
|
128
|
+
</div>
|
129
|
+
</div>
|
130
|
+
|
131
|
+
<div id="documentation">
|
132
|
+
<h1 class="class">Object</h1>
|
133
|
+
|
134
|
+
<div id="description" class="description">
|
135
|
+
|
136
|
+
</div><!-- description -->
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
<div id="5Buntitled-5D" class="documentation-section">
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
<!-- Methods -->
|
151
|
+
|
152
|
+
</div><!-- 5Buntitled-5D -->
|
153
|
+
|
154
|
+
|
155
|
+
</div><!-- documentation -->
|
156
|
+
|
157
|
+
<div id="validator-badges">
|
158
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
159
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
160
|
+
Rdoc Generator</a> 2</small>.</p>
|
161
|
+
</div>
|
162
|
+
|
163
|
+
</body>
|
164
|
+
</html>
|
165
|
+
|
data/html/Parser.html
ADDED
@@ -0,0 +1,291 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
7
|
+
|
8
|
+
<title>Class: Parser</title>
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
11
|
+
|
12
|
+
<script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
|
13
|
+
<script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
14
|
+
<script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
15
|
+
<script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body id="top" class="class">
|
19
|
+
|
20
|
+
<div id="metadata">
|
21
|
+
<div id="home-metadata">
|
22
|
+
<div id="home-section" class="section">
|
23
|
+
<h3 class="section-header">
|
24
|
+
<a href="./index.html">Home</a>
|
25
|
+
<a href="./index.html#classes">Classes</a>
|
26
|
+
<a href="./index.html#methods">Methods</a>
|
27
|
+
</h3>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div id="file-metadata">
|
32
|
+
<div id="file-list-section" class="section">
|
33
|
+
<h3 class="section-header">In Files</h3>
|
34
|
+
<div class="section-body">
|
35
|
+
<ul>
|
36
|
+
|
37
|
+
<li><a href="./lib/parser_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
+
class="thickbox" title="lib/parser.rb">lib/parser.rb</a></li>
|
39
|
+
|
40
|
+
</ul>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<div id="class-metadata">
|
48
|
+
|
49
|
+
<!-- Parent Class -->
|
50
|
+
<div id="parent-class-section" class="section">
|
51
|
+
<h3 class="section-header">Parent</h3>
|
52
|
+
|
53
|
+
<p class="link"><a href="Object.html">Object</a></p>
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
<!-- Method Quickref -->
|
64
|
+
<div id="method-list-section" class="section">
|
65
|
+
<h3 class="section-header">Methods</h3>
|
66
|
+
<ul class="link-list">
|
67
|
+
|
68
|
+
<li><a href="#method-i-list_auth_configs">#list_auth_configs</a></li>
|
69
|
+
|
70
|
+
<li><a href="#method-i-show_auth_config">#show_auth_config</a></li>
|
71
|
+
|
72
|
+
</ul>
|
73
|
+
</div>
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
</div>
|
78
|
+
|
79
|
+
<div id="project-metadata">
|
80
|
+
|
81
|
+
|
82
|
+
<div id="fileindex-section" class="section project-section">
|
83
|
+
<h3 class="section-header">Files</h3>
|
84
|
+
<ul>
|
85
|
+
|
86
|
+
<li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
|
87
|
+
|
88
|
+
</ul>
|
89
|
+
</div>
|
90
|
+
|
91
|
+
|
92
|
+
<div id="classindex-section" class="section project-section">
|
93
|
+
<h3 class="section-header">Class/Module Index
|
94
|
+
<span class="search-toggle"><img src="./images/find.png"
|
95
|
+
height="16" width="16" alt="[+]"
|
96
|
+
title="show/hide quicksearch" /></span></h3>
|
97
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
98
|
+
<fieldset>
|
99
|
+
<legend>Quicksearch</legend>
|
100
|
+
<input type="text" name="quicksearch" value=""
|
101
|
+
class="quicksearch-field" />
|
102
|
+
</fieldset>
|
103
|
+
</form>
|
104
|
+
|
105
|
+
<ul class="link-list">
|
106
|
+
|
107
|
+
<li><a href="./CloudShell.html">CloudShell</a></li>
|
108
|
+
|
109
|
+
<li><a href="./CloudShell/Context.html">CloudShell::Context</a></li>
|
110
|
+
|
111
|
+
<li><a href="./Configurator.html">Configurator</a></li>
|
112
|
+
|
113
|
+
<li><a href="./Formatter.html">Formatter</a></li>
|
114
|
+
|
115
|
+
<li><a href="./Object.html">Object</a></li>
|
116
|
+
|
117
|
+
<li><a href="./Parser.html">Parser</a></li>
|
118
|
+
|
119
|
+
<li><a href="./SwiftClient.html">SwiftClient</a></li>
|
120
|
+
|
121
|
+
<li><a href="./SwiftManager.html">SwiftManager</a></li>
|
122
|
+
|
123
|
+
</ul>
|
124
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
125
|
+
</div>
|
126
|
+
|
127
|
+
|
128
|
+
</div>
|
129
|
+
</div>
|
130
|
+
|
131
|
+
<div id="documentation">
|
132
|
+
<h1 class="class">Parser</h1>
|
133
|
+
|
134
|
+
<div id="description" class="description">
|
135
|
+
<table class="rdoc-list"><tr><td class="rdoc-term"><p>Author</p></td>
|
136
|
+
<td>
|
137
|
+
<p>Murali Raju (<murali.raju@appliv.com>)</p>
|
138
|
+
</td></tr><tr><td class="rdoc-term"><p>Copyright</p></td>
|
139
|
+
<td>
|
140
|
+
<p>Copyright © 2011 Murali Raju.</p>
|
141
|
+
</td></tr><tr><td class="rdoc-term"><p>License</p></td>
|
142
|
+
<td>
|
143
|
+
<p>Apache License, Version 2.0</p>
|
144
|
+
</td></tr></table>
|
145
|
+
|
146
|
+
<p>Licensed under the Apache License, Version 2.0 (the “License”); you may not
|
147
|
+
use this file except in compliance with the License. You may obtain a copy
|
148
|
+
of the License at</p>
|
149
|
+
|
150
|
+
<p><a
|
151
|
+
href="http://www.apache.org/licenses/LICENSE-2.0">www.apache.org/licenses/LICENSE-2.0</a></p>
|
152
|
+
|
153
|
+
<p>Unless required by applicable law or agreed to in writing, software
|
154
|
+
distributed under the License is distributed on an “AS IS” BASIS, WITHOUT
|
155
|
+
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
156
|
+
License for the specific language governing permissions and limitations
|
157
|
+
under the License.</p>
|
158
|
+
|
159
|
+
</div><!-- description -->
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
<div id="5Buntitled-5D" class="documentation-section">
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
<!-- Methods -->
|
174
|
+
|
175
|
+
<div id="public-instance-method-details" class="method-section section">
|
176
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
177
|
+
|
178
|
+
|
179
|
+
<div id="list_auth_configs-method" class="method-detail ">
|
180
|
+
<a name="method-i-list_auth_configs"></a>
|
181
|
+
|
182
|
+
|
183
|
+
<div class="method-heading">
|
184
|
+
<span class="method-name">list_auth_configs</span><span
|
185
|
+
class="method-args">()</span>
|
186
|
+
<span class="method-click-advice">click to toggle source</span>
|
187
|
+
</div>
|
188
|
+
|
189
|
+
|
190
|
+
<div class="method-description">
|
191
|
+
|
192
|
+
<p>Parse swift-manager configs (JSON)</p>
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
<div class="method-source-code" id="list_auth_configs-source">
|
197
|
+
<pre>
|
198
|
+
<span class="ruby-comment"># File lib/parser.rb, line 22</span>
|
199
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">list_auth_configs</span>
|
200
|
+
<span class="ruby-identifier">auth_config_path</span> = <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">home</span> <span class="ruby-operator">+</span> <span class="ruby-string">"/.swift-manager/authentication/*.json"</span>
|
201
|
+
<span class="ruby-identifier">auth_configs</span> = <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">glob</span>(<span class="ruby-identifier">auth_config_path</span>)
|
202
|
+
|
203
|
+
<span class="ruby-comment">#Display table output using the terminal-table gem</span>
|
204
|
+
<span class="ruby-identifier">table</span> = <span class="ruby-constant">Terminal</span><span class="ruby-operator">::</span><span class="ruby-constant">Table</span>.<span class="ruby-identifier">new</span> <span class="ruby-value">:headings</span> =<span class="ruby-operator">></span> [<span class="ruby-string">'Auth Config'</span>]
|
205
|
+
<span class="ruby-keyword">unless</span> <span class="ruby-identifier">auth_configs</span>.<span class="ruby-identifier">empty?</span>
|
206
|
+
<span class="ruby-identifier">auth_configs</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">row</span><span class="ruby-operator">|</span>
|
207
|
+
<span class="ruby-ivar">@row</span> = []
|
208
|
+
<span class="ruby-ivar">@row</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"#{File.basename(row, '.*').chomp(File.extname(row))}"</span>.<span class="ruby-identifier">bright</span>
|
209
|
+
<span class="ruby-identifier">table</span> <span class="ruby-operator"><<</span> <span class="ruby-ivar">@row</span>
|
210
|
+
<span class="ruby-keyword">end</span>
|
211
|
+
|
212
|
+
<span class="ruby-keyword">end</span>
|
213
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">table</span>.<span class="ruby-identifier">to_s</span>
|
214
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-string">''</span>
|
215
|
+
|
216
|
+
<span class="ruby-keyword">end</span></pre>
|
217
|
+
</div><!-- list_auth_configs-source -->
|
218
|
+
|
219
|
+
</div>
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
</div><!-- list_auth_configs-method -->
|
225
|
+
|
226
|
+
|
227
|
+
<div id="show_auth_config-method" class="method-detail ">
|
228
|
+
<a name="method-i-show_auth_config"></a>
|
229
|
+
|
230
|
+
|
231
|
+
<div class="method-heading">
|
232
|
+
<span class="method-name">show_auth_config</span><span
|
233
|
+
class="method-args">(auth_json)</span>
|
234
|
+
<span class="method-click-advice">click to toggle source</span>
|
235
|
+
</div>
|
236
|
+
|
237
|
+
|
238
|
+
<div class="method-description">
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
<div class="method-source-code" id="show_auth_config-source">
|
245
|
+
<pre>
|
246
|
+
<span class="ruby-comment"># File lib/parser.rb, line 41</span>
|
247
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">show_auth_config</span>(<span class="ruby-identifier">auth_json</span>)
|
248
|
+
<span class="ruby-identifier">auth_config</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-constant">Dir</span>.<span class="ruby-identifier">home</span> <span class="ruby-operator">+</span> <span class="ruby-node">"/.swift-manager/authentication/#{auth_json}.json"</span>)
|
249
|
+
<span class="ruby-identifier">auth_params</span> = <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">auth_config</span>)
|
250
|
+
|
251
|
+
<span class="ruby-comment">#Display table output using the terminal-table gem</span>
|
252
|
+
<span class="ruby-identifier">table</span> = <span class="ruby-constant">Terminal</span><span class="ruby-operator">::</span><span class="ruby-constant">Table</span>.<span class="ruby-identifier">new</span> <span class="ruby-value">:headings</span> =<span class="ruby-operator">></span> [ <span class="ruby-string">'Tag'</span>, <span class="ruby-string">'Provider'</span>, <span class="ruby-string">'Service'</span>, <span class="ruby-string">'Secret Access Key'</span>, <span class="ruby-string">'Access Key ID'</span>, <span class="ruby-string">'Auth URL IP'</span>]
|
253
|
+
<span class="ruby-identifier">auth_params</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">row</span><span class="ruby-operator">|</span>
|
254
|
+
<span class="ruby-ivar">@row</span> = []
|
255
|
+
<span class="ruby-ivar">@row</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">auth_params</span>[<span class="ruby-string">"tag"</span>]
|
256
|
+
<span class="ruby-ivar">@row</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">auth_params</span>[<span class="ruby-string">"provider"</span>]
|
257
|
+
<span class="ruby-ivar">@row</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">auth_params</span>[<span class="ruby-string">"service"</span>]
|
258
|
+
<span class="ruby-ivar">@row</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">auth_params</span>[<span class="ruby-string">"keys"</span>][<span class="ruby-string">"secret_access_key"</span>]
|
259
|
+
<span class="ruby-ivar">@row</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">auth_params</span>[<span class="ruby-string">"keys"</span>][<span class="ruby-string">"access_key_id"</span>]
|
260
|
+
<span class="ruby-ivar">@row</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">auth_params</span>[<span class="ruby-string">"url_ip"</span>]
|
261
|
+
<span class="ruby-keyword">end</span>
|
262
|
+
<span class="ruby-identifier">table</span> <span class="ruby-operator"><<</span> <span class="ruby-ivar">@row</span>
|
263
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">table</span>.<span class="ruby-identifier">to_s</span>
|
264
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-string">''</span>
|
265
|
+
<span class="ruby-keyword">end</span></pre>
|
266
|
+
</div><!-- show_auth_config-source -->
|
267
|
+
|
268
|
+
</div>
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
</div><!-- show_auth_config-method -->
|
274
|
+
|
275
|
+
|
276
|
+
</div><!-- public-instance-method-details -->
|
277
|
+
|
278
|
+
</div><!-- 5Buntitled-5D -->
|
279
|
+
|
280
|
+
|
281
|
+
</div><!-- documentation -->
|
282
|
+
|
283
|
+
<div id="validator-badges">
|
284
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
285
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
286
|
+
Rdoc Generator</a> 2</small>.</p>
|
287
|
+
</div>
|
288
|
+
|
289
|
+
</body>
|
290
|
+
</html>
|
291
|
+
|