ec2-host 0.6.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/CHANGELOG.md +6 -0
- data/docs/EC2.html +45 -44
- data/docs/EC2/Host.html +80 -80
- data/docs/EC2/Host/CLI.html +85 -70
- data/docs/EC2/Host/Config.html +99 -94
- data/docs/EC2/Host/EC2Client.html +49 -48
- data/docs/EC2/Host/HashUtil.html +41 -41
- data/docs/EC2/Host/HostData.html +586 -191
- data/docs/EC2/Host/RoleData.html +106 -94
- data/docs/EC2/Host/StringUtil.html +99 -47
- data/docs/_index.html +28 -31
- data/docs/class_list.html +24 -31
- data/docs/css/full_list.css +32 -31
- data/docs/css/style.css +244 -91
- data/docs/file.LICENSE.html +28 -31
- data/docs/file.README.html +30 -33
- data/docs/file_list.html +29 -31
- data/docs/frames.html +7 -16
- data/docs/index.html +30 -33
- data/docs/js/app.js +106 -77
- data/docs/js/full_list.js +170 -135
- data/docs/method_list.html +439 -245
- data/docs/top-level-namespace.html +34 -36
- data/ec2-host.gemspec +1 -1
- data/example/aws-sdk.rb +1 -1
- data/lib/ec2/host/ec2_client.rb +1 -1
- data/lib/ec2/host/host_data.rb +3 -1
- data/lib/ec2/host/role_data.rb +5 -2
- data/lib/ec2/host/version.rb +1 -1
- metadata +8 -8
data/docs/file.LICENSE.html
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
4
3
|
<head>
|
5
|
-
<meta
|
4
|
+
<meta charset="UTF-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
7
|
File: LICENSE
|
8
8
|
|
9
|
-
— Documentation by YARD 0.
|
9
|
+
— Documentation by YARD 0.9.9
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -15,9 +15,8 @@
|
|
15
15
|
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
|
-
|
18
|
+
pathId = "LICENSE";
|
19
19
|
relpath = '';
|
20
|
-
framesUrl = "frames.html#!file.LICENSE.html";
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,40 +27,37 @@
|
|
28
27
|
|
29
28
|
</head>
|
30
29
|
<body>
|
31
|
-
<div
|
32
|
-
<
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="file_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
33
38
|
|
34
39
|
<a href="_index.html">Index</a> »
|
35
40
|
<span class="title">File: LICENSE</span>
|
36
41
|
|
37
|
-
|
38
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
39
42
|
</div>
|
40
43
|
|
41
|
-
|
44
|
+
<div id="search">
|
42
45
|
|
43
46
|
<a class="full_list_link" id="class_list_link"
|
44
47
|
href="class_list.html">
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
</a>
|
52
|
-
|
53
|
-
<a class="full_list_link" id="file_list_link"
|
54
|
-
href="file_list.html">
|
55
|
-
File List
|
48
|
+
|
49
|
+
<svg width="24" height="24">
|
50
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
51
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
52
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
</svg>
|
56
54
|
</a>
|
57
55
|
|
58
56
|
</div>
|
59
|
-
|
60
|
-
|
57
|
+
<div class="clear"></div>
|
58
|
+
</div>
|
61
59
|
|
62
|
-
|
63
|
-
|
64
|
-
<div id="content"><div id='filecontents'>
|
60
|
+
<div id="content"><div id='filecontents'>
|
65
61
|
<p>Copyright © 2015 Naotoshi Seo</p>
|
66
62
|
|
67
63
|
<p>MIT License</p>
|
@@ -85,11 +81,12 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
85
81
|
DEALINGS IN THE SOFTWARE.</p>
|
86
82
|
</div></div>
|
87
83
|
|
88
|
-
|
89
|
-
Generated on
|
84
|
+
<div id="footer">
|
85
|
+
Generated on Sat May 20 00:23:52 2017 by
|
90
86
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
91
|
-
0.
|
87
|
+
0.9.9 (ruby-2.4.1).
|
92
88
|
</div>
|
93
89
|
|
90
|
+
</div>
|
94
91
|
</body>
|
95
92
|
</html>
|
data/docs/file.README.html
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
4
3
|
<head>
|
5
|
-
<meta
|
4
|
+
<meta charset="UTF-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
7
|
File: README
|
8
8
|
|
9
|
-
— Documentation by YARD 0.
|
9
|
+
— Documentation by YARD 0.9.9
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -15,9 +15,8 @@
|
|
15
15
|
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
|
-
|
18
|
+
pathId = "README";
|
19
19
|
relpath = '';
|
20
|
-
framesUrl = "frames.html#!file.README.html";
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,40 +27,37 @@
|
|
28
27
|
|
29
28
|
</head>
|
30
29
|
<body>
|
31
|
-
<div
|
32
|
-
<
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="file_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
33
38
|
|
34
39
|
<a href="_index.html">Index</a> »
|
35
40
|
<span class="title">File: README</span>
|
36
41
|
|
37
|
-
|
38
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
39
42
|
</div>
|
40
43
|
|
41
|
-
|
44
|
+
<div id="search">
|
42
45
|
|
43
46
|
<a class="full_list_link" id="class_list_link"
|
44
47
|
href="class_list.html">
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
</a>
|
52
|
-
|
53
|
-
<a class="full_list_link" id="file_list_link"
|
54
|
-
href="file_list.html">
|
55
|
-
File List
|
48
|
+
|
49
|
+
<svg width="24" height="24">
|
50
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
51
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
52
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
</svg>
|
56
54
|
</a>
|
57
55
|
|
58
56
|
</div>
|
59
|
-
|
60
|
-
|
57
|
+
<div class="clear"></div>
|
58
|
+
</div>
|
61
59
|
|
62
|
-
|
63
|
-
|
64
|
-
<div id="content"><div id='filecontents'>
|
60
|
+
<div id="content"><div id='filecontents'>
|
65
61
|
<h1 id="label-ec2-host">ec2-host</h1>
|
66
62
|
|
67
63
|
<p>Search hosts on AWS EC2</p>
|
@@ -242,7 +238,7 @@ Usage: ec2-host [options]
|
|
242
238
|
|
243
239
|
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ec2-host</span><span class='tstring_end'>'</span></span>
|
244
240
|
|
245
|
-
<span class='id identifier rubyid_hosts'>hosts</span> <span class='op'>=</span> <span class='const'>EC2</span><span class='op'>::</span><span class='const'>Host</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='label'>role:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>admin:ami</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
241
|
+
<span class='id identifier rubyid_hosts'>hosts</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="EC2.html" title="EC2 (class)">EC2</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="EC2/Host.html" title="EC2::Host (class)">Host</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="EC2/Host.html#initialize-instance_method" title="EC2::Host#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='label'>role:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>admin:ami</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
246
242
|
<span class='id identifier rubyid_hosts'>hosts</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_host'>host</span><span class='op'>|</span>
|
247
243
|
<span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_host'>host</span>
|
248
244
|
<span class='kw'>end</span>
|
@@ -286,7 +282,7 @@ OPTIONAL_STRING_TAGS=Service,Status</code></pre>
|
|
286
282
|
|
287
283
|
<pre class="code ruby"><code class="ruby">$ brew install terraform
|
288
284
|
$ env $(cat .env) terraform plan
|
289
|
-
$ env (
|
285
|
+
$ env $(cat .env) terraform apply</code></pre>
|
290
286
|
|
291
287
|
<p>Run test</p>
|
292
288
|
|
@@ -318,11 +314,12 @@ $ env ($cat .env) terraform apply</code></pre>
|
|
318
314
|
<p>See <a href="LICENSE">LICENSE</a></p>
|
319
315
|
</div></div>
|
320
316
|
|
321
|
-
|
322
|
-
Generated on
|
317
|
+
<div id="footer">
|
318
|
+
Generated on Sat May 20 00:23:52 2017 by
|
323
319
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
324
|
-
0.
|
320
|
+
0.9.9 (ruby-2.4.1).
|
325
321
|
</div>
|
326
322
|
|
323
|
+
</div>
|
327
324
|
</body>
|
328
325
|
</html>
|
data/docs/file_list.html
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
1
|
+
<!DOCTYPE html>
|
3
2
|
<html>
|
4
3
|
<head>
|
5
|
-
<meta
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
5
|
+
<meta charset="utf-8" />
|
6
6
|
|
7
7
|
<link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" charset="utf-8" />
|
8
8
|
|
@@ -19,44 +19,42 @@
|
|
19
19
|
<base id="base_target" target="_parent" />
|
20
20
|
</head>
|
21
21
|
<body>
|
22
|
-
<script type="text/javascript" charset="utf-8">
|
23
|
-
var hasFrames = false;
|
24
|
-
try {
|
25
|
-
hasFrames = window.top.frames.main ? true : false;
|
26
|
-
} catch (e) { }
|
27
|
-
if (hasFrames) {
|
28
|
-
document.getElementById('base_target').target = 'main';
|
29
|
-
document.body.className = 'frames';
|
30
|
-
}
|
31
|
-
</script>
|
32
22
|
<div id="content">
|
33
|
-
<
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
23
|
+
<div class="fixed_header">
|
24
|
+
<h1 id="full_list_header">File List</h1>
|
25
|
+
<div id="full_list_nav">
|
26
|
+
|
27
|
+
<span><a target="_self" href="class_list.html">
|
28
|
+
Classes
|
29
|
+
</a></span>
|
30
|
+
|
31
|
+
<span><a target="_self" href="method_list.html">
|
32
|
+
Methods
|
33
|
+
</a></span>
|
34
|
+
|
35
|
+
<span><a target="_self" href="file_list.html">
|
36
|
+
Files
|
37
|
+
</a></span>
|
38
|
+
|
39
|
+
</div>
|
40
|
+
|
41
|
+
<div id="search">Search: <input type="text" /></div>
|
48
42
|
</div>
|
49
|
-
<div id="search">Search: <input type="text" /></div>
|
50
43
|
|
51
44
|
<ul id="full_list" class="file">
|
52
45
|
|
53
46
|
|
54
|
-
<li
|
47
|
+
<li id="object_README" class="odd">
|
48
|
+
<div class="item"><span class="object_link"><a href="index.html" title="README">README</a></span></div>
|
49
|
+
</li>
|
55
50
|
|
56
51
|
|
57
|
-
<li
|
52
|
+
<li id="object_LICENSE" class="even">
|
53
|
+
<div class="item"><span class="object_link"><a href="file.LICENSE.html" title="LICENSE">LICENSE</a></span></div>
|
54
|
+
</li>
|
58
55
|
|
59
56
|
|
57
|
+
|
60
58
|
</ul>
|
61
59
|
</div>
|
62
60
|
</body>
|
data/docs/frames.html
CHANGED
@@ -1,26 +1,17 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
3
|
-
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
5
3
|
<head>
|
6
|
-
|
7
|
-
<title>Documentation by YARD 0.
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<title>Documentation by YARD 0.9.9</title>
|
8
6
|
</head>
|
9
7
|
<script type="text/javascript" charset="utf-8">
|
10
|
-
window.onload = function() {
|
11
8
|
var match = unescape(window.location.hash).match(/^#!(.+)/);
|
12
9
|
var name = match ? match[1] : 'index.html';
|
13
10
|
name = name.replace(/^(\w+):\/\//, '').replace(/^\/\//, '');
|
14
|
-
|
15
|
-
'<frame name="list" src="class_list.html" />' +
|
16
|
-
'<frame name="main" src="' + escape(name) + '" />' +
|
17
|
-
'</frameset>');
|
18
|
-
}
|
11
|
+
window.top.location = name;
|
19
12
|
</script>
|
20
13
|
<noscript>
|
21
|
-
<
|
22
|
-
|
23
|
-
<frame name="main" src="index.html" />
|
24
|
-
</frameset>
|
14
|
+
<h1>Oops!</h1>
|
15
|
+
<h2>YARD requires JavaScript!</h2>
|
25
16
|
</noscript>
|
26
17
|
</html>
|
data/docs/index.html
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
4
3
|
<head>
|
5
|
-
<meta
|
4
|
+
<meta charset="UTF-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
7
|
File: README
|
8
8
|
|
9
|
-
— Documentation by YARD 0.
|
9
|
+
— Documentation by YARD 0.9.9
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -15,9 +15,8 @@
|
|
15
15
|
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
|
-
|
18
|
+
pathId = "README";
|
19
19
|
relpath = '';
|
20
|
-
framesUrl = "frames.html#!file.README.html";
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,40 +27,37 @@
|
|
28
27
|
|
29
28
|
</head>
|
30
29
|
<body>
|
31
|
-
<div
|
32
|
-
<
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
33
38
|
|
34
39
|
<a href="_index.html">Index</a> »
|
35
40
|
<span class="title">File: README</span>
|
36
41
|
|
37
|
-
|
38
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
39
42
|
</div>
|
40
43
|
|
41
|
-
|
44
|
+
<div id="search">
|
42
45
|
|
43
46
|
<a class="full_list_link" id="class_list_link"
|
44
47
|
href="class_list.html">
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
</a>
|
52
|
-
|
53
|
-
<a class="full_list_link" id="file_list_link"
|
54
|
-
href="file_list.html">
|
55
|
-
File List
|
48
|
+
|
49
|
+
<svg width="24" height="24">
|
50
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
51
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
52
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
</svg>
|
56
54
|
</a>
|
57
55
|
|
58
56
|
</div>
|
59
|
-
|
60
|
-
|
57
|
+
<div class="clear"></div>
|
58
|
+
</div>
|
61
59
|
|
62
|
-
|
63
|
-
|
64
|
-
<div id="content"><div id='filecontents'>
|
60
|
+
<div id="content"><div id='filecontents'>
|
65
61
|
<h1 id="label-ec2-host">ec2-host</h1>
|
66
62
|
|
67
63
|
<p>Search hosts on AWS EC2</p>
|
@@ -242,7 +238,7 @@ Usage: ec2-host [options]
|
|
242
238
|
|
243
239
|
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ec2-host</span><span class='tstring_end'>'</span></span>
|
244
240
|
|
245
|
-
<span class='id identifier rubyid_hosts'>hosts</span> <span class='op'>=</span> <span class='const'>EC2</span><span class='op'>::</span><span class='const'>Host</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='label'>role:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>admin:ami</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
241
|
+
<span class='id identifier rubyid_hosts'>hosts</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="EC2.html" title="EC2 (class)">EC2</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="EC2/Host.html" title="EC2::Host (class)">Host</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="EC2/Host.html#initialize-instance_method" title="EC2::Host#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='label'>role:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>admin:ami</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
246
242
|
<span class='id identifier rubyid_hosts'>hosts</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_host'>host</span><span class='op'>|</span>
|
247
243
|
<span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_host'>host</span>
|
248
244
|
<span class='kw'>end</span>
|
@@ -286,7 +282,7 @@ OPTIONAL_STRING_TAGS=Service,Status</code></pre>
|
|
286
282
|
|
287
283
|
<pre class="code ruby"><code class="ruby">$ brew install terraform
|
288
284
|
$ env $(cat .env) terraform plan
|
289
|
-
$ env (
|
285
|
+
$ env $(cat .env) terraform apply</code></pre>
|
290
286
|
|
291
287
|
<p>Run test</p>
|
292
288
|
|
@@ -318,11 +314,12 @@ $ env ($cat .env) terraform apply</code></pre>
|
|
318
314
|
<p>See <a href="LICENSE">LICENSE</a></p>
|
319
315
|
</div></div>
|
320
316
|
|
321
|
-
|
322
|
-
Generated on
|
317
|
+
<div id="footer">
|
318
|
+
Generated on Sat May 20 00:23:52 2017 by
|
323
319
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
324
|
-
0.
|
320
|
+
0.9.9 (ruby-2.4.1).
|
325
321
|
</div>
|
326
322
|
|
323
|
+
</div>
|
327
324
|
</body>
|
328
325
|
</html>
|