appscale-tools 1.6.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.
- data/LICENSE +37 -0
- data/README +17 -0
- data/bin/appscale-add-keypair +15 -0
- data/bin/appscale-describe-instances +16 -0
- data/bin/appscale-remove-app +13 -0
- data/bin/appscale-reset-pwd +13 -0
- data/bin/appscale-run-instances +15 -0
- data/bin/appscale-terminate-instances +14 -0
- data/bin/appscale-upload-app +13 -0
- data/doc/AdvancedNode.html +163 -0
- data/doc/AppControllerClient.html +831 -0
- data/doc/AppEngineConfigException.html +165 -0
- data/doc/AppScaleException.html +165 -0
- data/doc/AppScaleTools.html +768 -0
- data/doc/BadCommandLineArgException.html +166 -0
- data/doc/BadConfigurationException.html +166 -0
- data/doc/CommonFunctions.html +2559 -0
- data/doc/EncryptionHelper.html +332 -0
- data/doc/GodInterface.html +443 -0
- data/doc/InfrastructureException.html +166 -0
- data/doc/Node.html +470 -0
- data/doc/NodeLayout.html +1297 -0
- data/doc/Object.html +539 -0
- data/doc/ParseArgs.html +268 -0
- data/doc/RemoteLogging.html +268 -0
- data/doc/SimpleNode.html +163 -0
- data/doc/UsageText.html +1204 -0
- data/doc/UserAppClient.html +993 -0
- data/doc/VMTools.html +1365 -0
- data/doc/bin/appscale-add-keypair.html +56 -0
- data/doc/bin/appscale-describe-instances.html +56 -0
- data/doc/bin/appscale-remove-app.html +56 -0
- data/doc/bin/appscale-reset-pwd.html +56 -0
- data/doc/bin/appscale-run-instances.html +56 -0
- data/doc/bin/appscale-terminate-instances.html +56 -0
- data/doc/bin/appscale-upload-app.html +56 -0
- data/doc/created.rid +21 -0
- data/doc/images/add.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +116 -0
- data/doc/js/darkfish.js +153 -0
- data/doc/js/jquery.js +18 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/quicksearch.js +114 -0
- data/doc/js/search.js +94 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/searcher.js +228 -0
- data/doc/js/thickbox-compressed.js +10 -0
- data/doc/lib/app_controller_client_rb.html +60 -0
- data/doc/lib/appscale_tools_rb.html +88 -0
- data/doc/lib/common_functions_rb.html +78 -0
- data/doc/lib/custom_exceptions_rb.html +54 -0
- data/doc/lib/encryption_helper_rb.html +60 -0
- data/doc/lib/godinterface_rb.html +52 -0
- data/doc/lib/node_layout_rb.html +55 -0
- data/doc/lib/parse_args_rb.html +58 -0
- data/doc/lib/remote_log_rb.html +58 -0
- data/doc/lib/sshcopyid.html +174 -0
- data/doc/lib/usage_text_rb.html +58 -0
- data/doc/lib/user_app_client_rb.html +62 -0
- data/doc/lib/vm_tools_rb.html +62 -0
- data/doc/table_of_contents.html +496 -0
- data/lib/app_controller_client.rb +181 -0
- data/lib/appscale_tools.rb +403 -0
- data/lib/common_functions.rb +1467 -0
- data/lib/custom_exceptions.rb +25 -0
- data/lib/encryption_helper.rb +86 -0
- data/lib/godinterface.rb +152 -0
- data/lib/node_layout.rb +665 -0
- data/lib/parse_args.rb +415 -0
- data/lib/remote_log.rb +46 -0
- data/lib/sshcopyid +65 -0
- data/lib/usage_text.rb +144 -0
- data/lib/user_app_client.rb +245 -0
- data/lib/vm_tools.rb +549 -0
- data/test/tc_app_controller_client.rb +10 -0
- data/test/tc_appscale_add_keypair.rb +44 -0
- data/test/tc_appscale_describe_instances.rb +69 -0
- data/test/tc_appscale_remove_app.rb +128 -0
- data/test/tc_appscale_reset_pwd.rb +156 -0
- data/test/tc_appscale_run_instances.rb +48 -0
- data/test/tc_appscale_terminate_instances.rb +104 -0
- data/test/tc_appscale_upload_app.rb +166 -0
- data/test/tc_common_functions.rb +56 -0
- data/test/tc_encryption_helper.rb +10 -0
- data/test/tc_god_interface.rb +10 -0
- data/test/tc_node_layout.rb +93 -0
- data/test/tc_parse_args.rb +160 -0
- data/test/tc_user_app_client.rb +10 -0
- data/test/tc_vm_tools.rb +10 -0
- data/test/ts_all.rb +20 -0
- metadata +211 -0
data/LICENSE
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
Software License Agreement (BSD License)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2008, Regents of the University of California
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
Redistribution and use of this software in source and binary forms, with or
|
|
7
|
+
without modification, are permitted provided that the following conditions
|
|
8
|
+
are met:
|
|
9
|
+
|
|
10
|
+
* Redistributions of source code must retain the above
|
|
11
|
+
copyright notice, this list of conditions and the
|
|
12
|
+
following disclaimer.
|
|
13
|
+
|
|
14
|
+
* Redistributions in binary form must reproduce the above
|
|
15
|
+
copyright notice, this list of conditions and the
|
|
16
|
+
following disclaimer in the documentation and/or other
|
|
17
|
+
materials provided with the distribution.
|
|
18
|
+
|
|
19
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
20
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
21
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
22
|
+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
|
23
|
+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
24
|
+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
25
|
+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
26
|
+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
27
|
+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
28
|
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
29
|
+
POSSIBILITY OF SUCH DAMAGE. USERS OF THIS SOFTWARE ACKNOWLEDGE THE POSSIBLE
|
|
30
|
+
PRESENCE OF OTHER OPEN SOURCE LICENSED MATERIAL, COPYRIGHTED MATERIAL OR
|
|
31
|
+
PATENTED MATERIAL IN THIS SOFTWARE, AND IF ANY SUCH MATERIAL IS DISCOVERED THE PARTY
|
|
32
|
+
DISCOVERING IT MAY INFORM DR. CHANDRA KRINTZ AT THE UNIVERSITY OF CALIFORNIA,
|
|
33
|
+
SANTA BARBARA WHO WILL THEN ASCERTAIN THE MOST APPROPRIATE REMEDY, WHICH
|
|
34
|
+
IN THE REGENTS’ DISCRETION MAY INCLUDE, WITHOUT LIMITATION, REPLACEMENT
|
|
35
|
+
OF THE CODE SO IDENTIFIED, LICENSING OF THE CODE SO IDENTIFIED, OR WITHDRAWAL
|
|
36
|
+
OF THE CODE CAPABILITY TO THE EXTENT NEEDED TO COMPLY WITH ANY SUCH LICENSES
|
|
37
|
+
OR RIGHTS.
|
data/README
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
AppScale Tools Version 1.6-rc1
|
|
2
|
+
from the UCSB RACELab
|
|
3
|
+
http://appscale.cs.ucsb.edu
|
|
4
|
+
|
|
5
|
+
This toolset automates the installation and manipulation of
|
|
6
|
+
the AppScale system. AppScale can be run as a cloud over
|
|
7
|
+
Eucalyptus or EC2, over a virtualization layer such as Xen,
|
|
8
|
+
or directly on a non-virtualized cluster.
|
|
9
|
+
|
|
10
|
+
To install the tools run:
|
|
11
|
+
|
|
12
|
+
sudo bash debian/appscale_build.sh
|
|
13
|
+
|
|
14
|
+
This will remove any directories /usr/local/appscale-tools*
|
|
15
|
+
and install the tools in /usr/local/appscale-tools.
|
|
16
|
+
If you wish to change the target location, change TOOL_HOME in
|
|
17
|
+
Makefile.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# Programmer: Chris Bunch
|
|
3
|
+
|
|
4
|
+
$VERBOSE = nil # to supress excessive SSL cert warnings
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
$:.unshift File.join(File.dirname(__FILE__), "..", "lib")
|
|
8
|
+
require 'appscale_tools'
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
if __FILE__ == $0
|
|
12
|
+
options = ParseArgs.get_vals_from_args(ARGV, AppScaleTools::ADD_KEYPAIR_FLAGS,
|
|
13
|
+
AppScaleTools::ADD_KEYPAIR_USAGE)
|
|
14
|
+
AppScaleTools.add_keypair(options)
|
|
15
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# Programmer: Chris Bunch
|
|
3
|
+
|
|
4
|
+
$:.unshift File.join(File.dirname(__FILE__), "..", "lib")
|
|
5
|
+
require 'appscale_tools'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
if __FILE__ == $0
|
|
9
|
+
options = ParseArgs.get_vals_from_args(ARGV,
|
|
10
|
+
AppScaleTools::DESCRIBE_INSTANCES_FLAGS,
|
|
11
|
+
AppScaleTools::DESCRIBE_INSTANCES_USAGE)
|
|
12
|
+
instance_info = AppScaleTools.describe_instances(options)
|
|
13
|
+
instance_info[:result].each { |instance|
|
|
14
|
+
puts instance
|
|
15
|
+
}
|
|
16
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# Programmer: Chris Bunch
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
$:.unshift File.join(File.dirname(__FILE__), "..", "lib")
|
|
6
|
+
require 'appscale_tools'
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
if __FILE__ == $0
|
|
10
|
+
options = ParseArgs.get_vals_from_args(ARGV, AppScaleTools::REMOVE_APP_FLAGS,
|
|
11
|
+
AppScaleTools::REMOVE_APP_USAGE)
|
|
12
|
+
AppScaleTools.remove_app(options)
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# Programmer: Chris Bunch
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
$:.unshift File.join(File.dirname(__FILE__), "..", "lib")
|
|
6
|
+
require 'appscale_tools'
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
if __FILE__ == $0
|
|
10
|
+
options = ParseArgs.get_vals_from_args(ARGV,
|
|
11
|
+
AppScaleTools::RESET_PASSWORD_FLAGS, AppScaleTools::RESET_PASSWORD_USAGE)
|
|
12
|
+
AppScaleTools.reset_password(options)
|
|
13
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# Programmer: Chris Bunch
|
|
3
|
+
|
|
4
|
+
$VERBOSE = nil # to surpress excessive SSL cert warnings
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
$:.unshift File.join(File.dirname(__FILE__), "..", "lib")
|
|
8
|
+
require 'appscale_tools'
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
if __FILE__ == $0
|
|
12
|
+
options = ParseArgs.get_vals_from_args(ARGV,
|
|
13
|
+
AppScaleTools::RUN_INSTANCES_FLAGS, AppScaleTools::RUN_INSTANCES_USAGE)
|
|
14
|
+
AppScaleTools.run_instances(options)
|
|
15
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# Programmer: Chris Bunch
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
$:.unshift File.join(File.dirname(__FILE__), "..", "lib")
|
|
6
|
+
require 'appscale_tools'
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
if __FILE__ == $0
|
|
10
|
+
options = ParseArgs.get_vals_from_args(ARGV,
|
|
11
|
+
AppScaleTools::TERMINATE_INSTANCES_FLAGS,
|
|
12
|
+
AppScaleTools::TERMINATE_INSTANCES_USAGE)
|
|
13
|
+
AppScaleTools.terminate_instances(options)
|
|
14
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# Programmer: Chris Bunch
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
$:.unshift File.join(File.dirname(__FILE__), "..", "lib")
|
|
6
|
+
require 'appscale_tools'
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
if __FILE__ == $0
|
|
10
|
+
options = ParseArgs.get_vals_from_args(ARGV, AppScaleTools::UPLOAD_APP_FLAGS,
|
|
11
|
+
AppScaleTools::UPLOAD_APP_USAGE)
|
|
12
|
+
AppScaleTools.upload_app(options)
|
|
13
|
+
end
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
|
|
3
|
+
<html>
|
|
4
|
+
<head>
|
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
|
6
|
+
|
|
7
|
+
<title>class AdvancedNode - RDoc Documentation</title>
|
|
8
|
+
|
|
9
|
+
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
|
10
|
+
|
|
11
|
+
<script type="text/javascript">
|
|
12
|
+
var rdoc_rel_prefix = "./";
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
|
16
|
+
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
|
17
|
+
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
|
18
|
+
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
|
19
|
+
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
|
20
|
+
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
<body id="top" class="class">
|
|
24
|
+
<nav id="metadata">
|
|
25
|
+
<nav id="home-section" class="section">
|
|
26
|
+
<h3 class="section-header">
|
|
27
|
+
<a href="./index.html">Home</a>
|
|
28
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
|
29
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
|
30
|
+
</h3>
|
|
31
|
+
</nav>
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
|
36
|
+
<h3 class="section-header">
|
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
|
39
|
+
</h3>
|
|
40
|
+
</form>
|
|
41
|
+
|
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
|
43
|
+
</nav>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<div id="file-metadata">
|
|
47
|
+
<nav id="file-list-section" class="section">
|
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
|
49
|
+
<ul>
|
|
50
|
+
<li>lib/node_layout.rb
|
|
51
|
+
</ul>
|
|
52
|
+
</nav>
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
<div id="class-metadata">
|
|
58
|
+
|
|
59
|
+
<nav id="parent-class-section" class="section">
|
|
60
|
+
<h3 class="section-header">Parent</h3>
|
|
61
|
+
|
|
62
|
+
<p class="link"><a href="Node.html">Node</a>
|
|
63
|
+
|
|
64
|
+
</nav>
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
</div>
|
|
69
|
+
|
|
70
|
+
<div id="project-metadata">
|
|
71
|
+
<nav id="fileindex-section" class="section project-section">
|
|
72
|
+
<h3 class="section-header">Pages</h3>
|
|
73
|
+
|
|
74
|
+
<ul>
|
|
75
|
+
|
|
76
|
+
<li class="file"><a href="./lib/sshcopyid.html">sshcopyid</a>
|
|
77
|
+
|
|
78
|
+
</ul>
|
|
79
|
+
</nav>
|
|
80
|
+
|
|
81
|
+
<nav id="classindex-section" class="section project-section">
|
|
82
|
+
<h3 class="section-header">Class and Module Index</h3>
|
|
83
|
+
|
|
84
|
+
<ul class="link-list">
|
|
85
|
+
|
|
86
|
+
<li><a href="./AdvancedNode.html">AdvancedNode</a>
|
|
87
|
+
|
|
88
|
+
<li><a href="./AppControllerClient.html">AppControllerClient</a>
|
|
89
|
+
|
|
90
|
+
<li><a href="./AppEngineConfigException.html">AppEngineConfigException</a>
|
|
91
|
+
|
|
92
|
+
<li><a href="./AppScaleException.html">AppScaleException</a>
|
|
93
|
+
|
|
94
|
+
<li><a href="./AppScaleTools.html">AppScaleTools</a>
|
|
95
|
+
|
|
96
|
+
<li><a href="./BadCommandLineArgException.html">BadCommandLineArgException</a>
|
|
97
|
+
|
|
98
|
+
<li><a href="./BadConfigurationException.html">BadConfigurationException</a>
|
|
99
|
+
|
|
100
|
+
<li><a href="./CommonFunctions.html">CommonFunctions</a>
|
|
101
|
+
|
|
102
|
+
<li><a href="./EncryptionHelper.html">EncryptionHelper</a>
|
|
103
|
+
|
|
104
|
+
<li><a href="./GodInterface.html">GodInterface</a>
|
|
105
|
+
|
|
106
|
+
<li><a href="./InfrastructureException.html">InfrastructureException</a>
|
|
107
|
+
|
|
108
|
+
<li><a href="./Node.html">Node</a>
|
|
109
|
+
|
|
110
|
+
<li><a href="./NodeLayout.html">NodeLayout</a>
|
|
111
|
+
|
|
112
|
+
<li><a href="./Object.html">Object</a>
|
|
113
|
+
|
|
114
|
+
<li><a href="./ParseArgs.html">ParseArgs</a>
|
|
115
|
+
|
|
116
|
+
<li><a href="./RemoteLogging.html">RemoteLogging</a>
|
|
117
|
+
|
|
118
|
+
<li><a href="./SimpleNode.html">SimpleNode</a>
|
|
119
|
+
|
|
120
|
+
<li><a href="./UsageText.html">UsageText</a>
|
|
121
|
+
|
|
122
|
+
<li><a href="./UserAppClient.html">UserAppClient</a>
|
|
123
|
+
|
|
124
|
+
<li><a href="./VMTools.html">VMTools</a>
|
|
125
|
+
|
|
126
|
+
</ul>
|
|
127
|
+
</nav>
|
|
128
|
+
|
|
129
|
+
</div>
|
|
130
|
+
</nav>
|
|
131
|
+
|
|
132
|
+
<div id="documentation">
|
|
133
|
+
<h1 class="class">class AdvancedNode</h1>
|
|
134
|
+
|
|
135
|
+
<div id="description" class="description">
|
|
136
|
+
|
|
137
|
+
</div><!-- description -->
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
<!-- Methods -->
|
|
152
|
+
|
|
153
|
+
</section><!-- 5Buntitled-5D -->
|
|
154
|
+
|
|
155
|
+
</div><!-- documentation -->
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
<footer id="validator-badges">
|
|
159
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
|
160
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
|
161
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
|
162
|
+
</footer>
|
|
163
|
+
|
|
@@ -0,0 +1,831 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
|
|
3
|
+
<html>
|
|
4
|
+
<head>
|
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
|
6
|
+
|
|
7
|
+
<title>class AppControllerClient - RDoc Documentation</title>
|
|
8
|
+
|
|
9
|
+
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
|
10
|
+
|
|
11
|
+
<script type="text/javascript">
|
|
12
|
+
var rdoc_rel_prefix = "./";
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
|
16
|
+
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
|
17
|
+
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
|
18
|
+
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
|
19
|
+
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
|
20
|
+
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
<body id="top" class="class">
|
|
24
|
+
<nav id="metadata">
|
|
25
|
+
<nav id="home-section" class="section">
|
|
26
|
+
<h3 class="section-header">
|
|
27
|
+
<a href="./index.html">Home</a>
|
|
28
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
|
29
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
|
30
|
+
</h3>
|
|
31
|
+
</nav>
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
|
36
|
+
<h3 class="section-header">
|
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
|
39
|
+
</h3>
|
|
40
|
+
</form>
|
|
41
|
+
|
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
|
43
|
+
</nav>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<div id="file-metadata">
|
|
47
|
+
<nav id="file-list-section" class="section">
|
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
|
49
|
+
<ul>
|
|
50
|
+
<li>lib/app_controller_client.rb
|
|
51
|
+
</ul>
|
|
52
|
+
</nav>
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
<div id="class-metadata">
|
|
58
|
+
|
|
59
|
+
<nav id="parent-class-section" class="section">
|
|
60
|
+
<h3 class="section-header">Parent</h3>
|
|
61
|
+
|
|
62
|
+
<p class="link"><a href="Object.html">Object</a>
|
|
63
|
+
|
|
64
|
+
</nav>
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
<!-- Method Quickref -->
|
|
68
|
+
<nav id="method-list-section" class="section">
|
|
69
|
+
<h3 class="section-header">Methods</h3>
|
|
70
|
+
|
|
71
|
+
<ul class="link-list">
|
|
72
|
+
|
|
73
|
+
<li><a href="#method-c-new">::new</a>
|
|
74
|
+
|
|
75
|
+
<li><a href="#method-i-app_is_running-3F">#app_is_running?</a>
|
|
76
|
+
|
|
77
|
+
<li><a href="#method-i-done_uploading">#done_uploading</a>
|
|
78
|
+
|
|
79
|
+
<li><a href="#method-i-get_all_public_ips">#get_all_public_ips</a>
|
|
80
|
+
|
|
81
|
+
<li><a href="#method-i-get_role_info">#get_role_info</a>
|
|
82
|
+
|
|
83
|
+
<li><a href="#method-i-get_status">#get_status</a>
|
|
84
|
+
|
|
85
|
+
<li><a href="#method-i-get_userappserver_ip">#get_userappserver_ip</a>
|
|
86
|
+
|
|
87
|
+
<li><a href="#method-i-is_done_initializing-3F">#is_done_initializing?</a>
|
|
88
|
+
|
|
89
|
+
<li><a href="#method-i-is_done_loading-3F">#is_done_loading?</a>
|
|
90
|
+
|
|
91
|
+
<li><a href="#method-i-is_live-3F">#is_live?</a>
|
|
92
|
+
|
|
93
|
+
<li><a href="#method-i-kill">#kill</a>
|
|
94
|
+
|
|
95
|
+
<li><a href="#method-i-make_call">#make_call</a>
|
|
96
|
+
|
|
97
|
+
<li><a href="#method-i-set_parameters">#set_parameters</a>
|
|
98
|
+
|
|
99
|
+
<li><a href="#method-i-status">#status</a>
|
|
100
|
+
|
|
101
|
+
<li><a href="#method-i-stop_app">#stop_app</a>
|
|
102
|
+
|
|
103
|
+
<li><a href="#method-i-update">#update</a>
|
|
104
|
+
|
|
105
|
+
</ul>
|
|
106
|
+
</nav>
|
|
107
|
+
|
|
108
|
+
</div>
|
|
109
|
+
|
|
110
|
+
<div id="project-metadata">
|
|
111
|
+
<nav id="fileindex-section" class="section project-section">
|
|
112
|
+
<h3 class="section-header">Pages</h3>
|
|
113
|
+
|
|
114
|
+
<ul>
|
|
115
|
+
|
|
116
|
+
<li class="file"><a href="./lib/sshcopyid.html">sshcopyid</a>
|
|
117
|
+
|
|
118
|
+
</ul>
|
|
119
|
+
</nav>
|
|
120
|
+
|
|
121
|
+
<nav id="classindex-section" class="section project-section">
|
|
122
|
+
<h3 class="section-header">Class and Module Index</h3>
|
|
123
|
+
|
|
124
|
+
<ul class="link-list">
|
|
125
|
+
|
|
126
|
+
<li><a href="./AdvancedNode.html">AdvancedNode</a>
|
|
127
|
+
|
|
128
|
+
<li><a href="./AppControllerClient.html">AppControllerClient</a>
|
|
129
|
+
|
|
130
|
+
<li><a href="./AppEngineConfigException.html">AppEngineConfigException</a>
|
|
131
|
+
|
|
132
|
+
<li><a href="./AppScaleException.html">AppScaleException</a>
|
|
133
|
+
|
|
134
|
+
<li><a href="./AppScaleTools.html">AppScaleTools</a>
|
|
135
|
+
|
|
136
|
+
<li><a href="./BadCommandLineArgException.html">BadCommandLineArgException</a>
|
|
137
|
+
|
|
138
|
+
<li><a href="./BadConfigurationException.html">BadConfigurationException</a>
|
|
139
|
+
|
|
140
|
+
<li><a href="./CommonFunctions.html">CommonFunctions</a>
|
|
141
|
+
|
|
142
|
+
<li><a href="./EncryptionHelper.html">EncryptionHelper</a>
|
|
143
|
+
|
|
144
|
+
<li><a href="./GodInterface.html">GodInterface</a>
|
|
145
|
+
|
|
146
|
+
<li><a href="./InfrastructureException.html">InfrastructureException</a>
|
|
147
|
+
|
|
148
|
+
<li><a href="./Node.html">Node</a>
|
|
149
|
+
|
|
150
|
+
<li><a href="./NodeLayout.html">NodeLayout</a>
|
|
151
|
+
|
|
152
|
+
<li><a href="./Object.html">Object</a>
|
|
153
|
+
|
|
154
|
+
<li><a href="./ParseArgs.html">ParseArgs</a>
|
|
155
|
+
|
|
156
|
+
<li><a href="./RemoteLogging.html">RemoteLogging</a>
|
|
157
|
+
|
|
158
|
+
<li><a href="./SimpleNode.html">SimpleNode</a>
|
|
159
|
+
|
|
160
|
+
<li><a href="./UsageText.html">UsageText</a>
|
|
161
|
+
|
|
162
|
+
<li><a href="./UserAppClient.html">UserAppClient</a>
|
|
163
|
+
|
|
164
|
+
<li><a href="./VMTools.html">VMTools</a>
|
|
165
|
+
|
|
166
|
+
</ul>
|
|
167
|
+
</nav>
|
|
168
|
+
|
|
169
|
+
</div>
|
|
170
|
+
</nav>
|
|
171
|
+
|
|
172
|
+
<div id="documentation">
|
|
173
|
+
<h1 class="class">class AppControllerClient</h1>
|
|
174
|
+
|
|
175
|
+
<div id="description" class="description">
|
|
176
|
+
|
|
177
|
+
</div><!-- description -->
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
<!-- Attributes -->
|
|
191
|
+
<section id="attribute-method-details" class="method-section section">
|
|
192
|
+
<h3 class="section-header">Attributes</h3>
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
<div id="attribute-i-conn" class="method-detail">
|
|
196
|
+
<div class="method-heading attribute-method-heading">
|
|
197
|
+
<span class="method-name">conn</span><span
|
|
198
|
+
class="attribute-access-type">[R]</span>
|
|
199
|
+
</div>
|
|
200
|
+
|
|
201
|
+
<div class="method-description">
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
</div>
|
|
206
|
+
</div>
|
|
207
|
+
|
|
208
|
+
<div id="attribute-i-ip" class="method-detail">
|
|
209
|
+
<div class="method-heading attribute-method-heading">
|
|
210
|
+
<span class="method-name">ip</span><span
|
|
211
|
+
class="attribute-access-type">[R]</span>
|
|
212
|
+
</div>
|
|
213
|
+
|
|
214
|
+
<div class="method-description">
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
</div>
|
|
219
|
+
</div>
|
|
220
|
+
|
|
221
|
+
<div id="attribute-i-secret" class="method-detail">
|
|
222
|
+
<div class="method-heading attribute-method-heading">
|
|
223
|
+
<span class="method-name">secret</span><span
|
|
224
|
+
class="attribute-access-type">[R]</span>
|
|
225
|
+
</div>
|
|
226
|
+
|
|
227
|
+
<div class="method-description">
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
</div>
|
|
232
|
+
</div>
|
|
233
|
+
|
|
234
|
+
</section><!-- attribute-method-details -->
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
<!-- Methods -->
|
|
238
|
+
|
|
239
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
|
240
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
<div id="method-i-app_is_running-3F" class="method-detail ">
|
|
244
|
+
|
|
245
|
+
<div class="method-heading">
|
|
246
|
+
<span class="method-name">app_is_running?</span><span
|
|
247
|
+
class="method-args">(appname)</span>
|
|
248
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
249
|
+
</div>
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
<div class="method-description">
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
<div class="method-source-code" id="app_is_running-3F-source">
|
|
259
|
+
<pre><span class="ruby-comment"># File lib/app_controller_client.rb, line 164</span>
|
|
260
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">app_is_running?</span>(<span class="ruby-identifier">appname</span>)
|
|
261
|
+
<span class="ruby-identifier">make_call</span>(<span class="ruby-constant">NO_TIMEOUT</span>, <span class="ruby-constant">RETRY_ON_FAIL</span>) {
|
|
262
|
+
<span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">is_app_running</span>(<span class="ruby-identifier">appname</span>, <span class="ruby-ivar">@secret</span>)
|
|
263
|
+
}
|
|
264
|
+
<span class="ruby-keyword">end</span></pre>
|
|
265
|
+
</div><!-- app_is_running-3F-source -->
|
|
266
|
+
|
|
267
|
+
</div>
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
</div><!-- app_is_running-3F-method -->
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
<div id="method-i-done_uploading" class="method-detail ">
|
|
276
|
+
|
|
277
|
+
<div class="method-heading">
|
|
278
|
+
<span class="method-name">done_uploading</span><span
|
|
279
|
+
class="method-args">(appname, location)</span>
|
|
280
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
281
|
+
</div>
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
<div class="method-description">
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
<div class="method-source-code" id="done_uploading-source">
|
|
291
|
+
<pre><span class="ruby-comment"># File lib/app_controller_client.rb, line 157</span>
|
|
292
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">done_uploading</span>(<span class="ruby-identifier">appname</span>, <span class="ruby-identifier">location</span>)
|
|
293
|
+
<span class="ruby-identifier">make_call</span>(<span class="ruby-constant">NO_TIMEOUT</span>, <span class="ruby-constant">RETRY_ON_FAIL</span>) {
|
|
294
|
+
<span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">done_uploading</span>(<span class="ruby-identifier">appname</span>, <span class="ruby-identifier">location</span>, <span class="ruby-ivar">@secret</span>)
|
|
295
|
+
}
|
|
296
|
+
<span class="ruby-keyword">end</span></pre>
|
|
297
|
+
</div><!-- done_uploading-source -->
|
|
298
|
+
|
|
299
|
+
</div>
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
</div><!-- done_uploading-method -->
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
<div id="method-i-get_all_public_ips" class="method-detail ">
|
|
308
|
+
|
|
309
|
+
<div class="method-heading">
|
|
310
|
+
<span class="method-name">get_all_public_ips</span><span
|
|
311
|
+
class="method-args">()</span>
|
|
312
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
313
|
+
</div>
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
<div class="method-description">
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
<div class="method-source-code" id="get_all_public_ips-source">
|
|
323
|
+
<pre><span class="ruby-comment"># File lib/app_controller_client.rb, line 139</span>
|
|
324
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_all_public_ips</span>()
|
|
325
|
+
<span class="ruby-identifier">make_call</span>(<span class="ruby-value">30</span>, <span class="ruby-constant">RETRY_ON_FAIL</span>) { <span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">get_all_public_ips</span>(<span class="ruby-ivar">@secret</span>) }
|
|
326
|
+
<span class="ruby-keyword">end</span></pre>
|
|
327
|
+
</div><!-- get_all_public_ips-source -->
|
|
328
|
+
|
|
329
|
+
</div>
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
</div><!-- get_all_public_ips-method -->
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
<div id="method-i-get_role_info" class="method-detail ">
|
|
338
|
+
|
|
339
|
+
<div class="method-heading">
|
|
340
|
+
<span class="method-name">get_role_info</span><span
|
|
341
|
+
class="method-args">()</span>
|
|
342
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
343
|
+
</div>
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
<div class="method-description">
|
|
347
|
+
|
|
348
|
+
<p>Asks the AppController to see what roles each node is running in AppScale.
|
|
349
|
+
The result is an Array, where each item is a Hash that contains information
|
|
350
|
+
about the given node.</p>
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
<div class="method-source-code" id="get_role_info-source">
|
|
355
|
+
<pre><span class="ruby-comment"># File lib/app_controller_client.rb, line 174</span>
|
|
356
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_role_info</span>()
|
|
357
|
+
<span class="ruby-identifier">make_call</span>(<span class="ruby-constant">NO_TIMEOUT</span>, <span class="ruby-constant">ABORT_ON_FAIL</span>) {
|
|
358
|
+
<span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">get_role_info</span>(<span class="ruby-ivar">@secret</span>)
|
|
359
|
+
}
|
|
360
|
+
<span class="ruby-keyword">end</span></pre>
|
|
361
|
+
</div><!-- get_role_info-source -->
|
|
362
|
+
|
|
363
|
+
</div>
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
</div><!-- get_role_info-method -->
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
<div id="method-i-get_status" class="method-detail ">
|
|
372
|
+
|
|
373
|
+
<div class="method-heading">
|
|
374
|
+
<span class="method-name">get_status</span><span
|
|
375
|
+
class="method-args">()</span>
|
|
376
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
377
|
+
</div>
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
<div class="method-description">
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
<div class="method-source-code" id="get_status-source">
|
|
387
|
+
<pre><span class="ruby-comment"># File lib/app_controller_client.rb, line 127</span>
|
|
388
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_status</span>()
|
|
389
|
+
<span class="ruby-identifier">make_call</span>(<span class="ruby-value">10</span>, <span class="ruby-constant">RETRY_ON_FAIL</span>) { <span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">status</span>(<span class="ruby-ivar">@secret</span>) }
|
|
390
|
+
<span class="ruby-keyword">end</span></pre>
|
|
391
|
+
</div><!-- get_status-source -->
|
|
392
|
+
|
|
393
|
+
</div>
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
</div><!-- get_status-method -->
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
<div id="method-i-get_userappserver_ip" class="method-detail ">
|
|
402
|
+
|
|
403
|
+
<div class="method-heading">
|
|
404
|
+
<span class="method-name">get_userappserver_ip</span><span
|
|
405
|
+
class="method-args">(verbose_level="low")</span>
|
|
406
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
407
|
+
</div>
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
<div class="method-description">
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
<div class="method-source-code" id="get_userappserver_ip-source">
|
|
417
|
+
<pre><span class="ruby-comment"># File lib/app_controller_client.rb, line 89</span>
|
|
418
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_userappserver_ip</span>(<span class="ruby-identifier">verbose_level</span>=<span class="ruby-string">"low"</span>)
|
|
419
|
+
<span class="ruby-identifier">userappserver_ip</span>, <span class="ruby-identifier">status</span>, <span class="ruby-identifier">state</span>, <span class="ruby-identifier">new_state</span> = <span class="ruby-string">""</span>, <span class="ruby-string">""</span>, <span class="ruby-string">""</span>, <span class="ruby-string">""</span>
|
|
420
|
+
<span class="ruby-identifier">loop</span> {
|
|
421
|
+
<span class="ruby-identifier">status</span> = <span class="ruby-identifier">get_status</span>()
|
|
422
|
+
|
|
423
|
+
<span class="ruby-identifier">new_state</span> = <span class="ruby-identifier">status</span>.<span class="ruby-identifier">scan</span>(<span class="ruby-regexp">%rCurrent State: ([\w\s\d\.,]+)\n/</span>).<span class="ruby-identifier">flatten</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">chomp</span>
|
|
424
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">verbose_level</span> <span class="ruby-operator">==</span> <span class="ruby-constant">LOGS_VERBOSE</span> <span class="ruby-keyword">and</span> <span class="ruby-identifier">new_state</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">state</span>
|
|
425
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">new_state</span>
|
|
426
|
+
<span class="ruby-identifier">state</span> = <span class="ruby-identifier">new_state</span>
|
|
427
|
+
<span class="ruby-keyword">end</span>
|
|
428
|
+
|
|
429
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">status</span> <span class="ruby-operator">==</span> <span class="ruby-string">"false: bad secret"</span>
|
|
430
|
+
<span class="ruby-identifier">abort</span>(<span class="ruby-node">"\nWe were unable to verify your secret key with the head node specified in your locations file. Are you sure you have the correct secret key and locations file?\n\nSecret provided: [#{@secret}]\nHead node IP address: [#{@ip}]\n"</span>)
|
|
431
|
+
<span class="ruby-keyword">end</span>
|
|
432
|
+
|
|
433
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">status</span> <span class="ruby-operator">=~</span> <span class="ruby-node">%rDatabase is at (#{IP_OR_FQDN})/</span> <span class="ruby-keyword">and</span> <span class="ruby-node">$1</span> <span class="ruby-operator">!=</span> <span class="ruby-string">"not-up-yet"</span>
|
|
434
|
+
<span class="ruby-identifier">userappserver_ip</span> = <span class="ruby-node">$1</span>
|
|
435
|
+
<span class="ruby-keyword">break</span>
|
|
436
|
+
<span class="ruby-keyword">end</span>
|
|
437
|
+
|
|
438
|
+
<span class="ruby-identifier">sleep</span>(<span class="ruby-value">10</span>)
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">userappserver_ip</span>
|
|
442
|
+
<span class="ruby-keyword">end</span></pre>
|
|
443
|
+
</div><!-- get_userappserver_ip-source -->
|
|
444
|
+
|
|
445
|
+
</div>
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
</div><!-- get_userappserver_ip-method -->
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
<div id="method-i-is_done_initializing-3F" class="method-detail ">
|
|
454
|
+
|
|
455
|
+
<div class="method-heading">
|
|
456
|
+
<span class="method-name">is_done_initializing?</span><span
|
|
457
|
+
class="method-args">()</span>
|
|
458
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
459
|
+
</div>
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
<div class="method-description">
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
<div class="method-source-code" id="is_done_initializing-3F-source">
|
|
469
|
+
<pre><span class="ruby-comment"># File lib/app_controller_client.rb, line 147</span>
|
|
470
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">is_done_initializing?</span>()
|
|
471
|
+
<span class="ruby-identifier">make_call</span>(<span class="ruby-constant">NO_TIMEOUT</span>, <span class="ruby-constant">RETRY_ON_FAIL</span>) {
|
|
472
|
+
<span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">is_done_initializing</span>(<span class="ruby-ivar">@secret</span>)
|
|
473
|
+
}
|
|
474
|
+
<span class="ruby-keyword">end</span></pre>
|
|
475
|
+
</div><!-- is_done_initializing-3F-source -->
|
|
476
|
+
|
|
477
|
+
</div>
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
</div><!-- is_done_initializing-3F-method -->
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
<div id="method-i-is_done_loading-3F" class="method-detail ">
|
|
486
|
+
|
|
487
|
+
<div class="method-heading">
|
|
488
|
+
<span class="method-name">is_done_loading?</span><span
|
|
489
|
+
class="method-args">()</span>
|
|
490
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
491
|
+
</div>
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
<div class="method-description">
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
<div class="method-source-code" id="is_done_loading-3F-source">
|
|
501
|
+
<pre><span class="ruby-comment"># File lib/app_controller_client.rb, line 153</span>
|
|
502
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">is_done_loading?</span>()
|
|
503
|
+
<span class="ruby-identifier">make_call</span>(<span class="ruby-constant">NO_TIMEOUT</span>, <span class="ruby-constant">RETRY_ON_FAIL</span>) { <span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">is_done_loading</span>(<span class="ruby-ivar">@secret</span>) }
|
|
504
|
+
<span class="ruby-keyword">end</span></pre>
|
|
505
|
+
</div><!-- is_done_loading-3F-source -->
|
|
506
|
+
|
|
507
|
+
</div>
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
</div><!-- is_done_loading-3F-method -->
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
<div id="method-i-is_live-3F" class="method-detail ">
|
|
516
|
+
|
|
517
|
+
<div class="method-heading">
|
|
518
|
+
<span class="method-name">is_live?</span><span
|
|
519
|
+
class="method-args">()</span>
|
|
520
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
521
|
+
</div>
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
<div class="method-description">
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
<div class="method-source-code" id="is_live-3F-source">
|
|
531
|
+
<pre><span class="ruby-comment"># File lib/app_controller_client.rb, line 76</span>
|
|
532
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">is_live?</span>
|
|
533
|
+
<span class="ruby-identifier">uri</span> = <span class="ruby-node">"https://#{@ip}:17443"</span>
|
|
534
|
+
|
|
535
|
+
<span class="ruby-keyword">begin</span>
|
|
536
|
+
<span class="ruby-constant">Timeout</span><span class="ruby-operator">::</span><span class="ruby-identifier">timeout</span>(<span class="ruby-value">5</span>) {
|
|
537
|
+
<span class="ruby-identifier">make_call</span>(<span class="ruby-value">1</span>, <span class="ruby-constant">ABORT_ON_FAIL</span>, <span class="ruby-identifier">want_output</span>=<span class="ruby-keyword">false</span>) { <span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">status</span>(<span class="ruby-ivar">@secret</span>) }
|
|
538
|
+
}
|
|
539
|
+
<span class="ruby-keyword">return</span> <span class="ruby-keyword">true</span>
|
|
540
|
+
<span class="ruby-keyword">rescue</span> <span class="ruby-constant">Exception</span>
|
|
541
|
+
<span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span>
|
|
542
|
+
<span class="ruby-keyword">end</span>
|
|
543
|
+
<span class="ruby-keyword">end</span></pre>
|
|
544
|
+
</div><!-- is_live-3F-source -->
|
|
545
|
+
|
|
546
|
+
</div>
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
</div><!-- is_live-3F-method -->
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
<div id="method-i-kill" class="method-detail ">
|
|
555
|
+
|
|
556
|
+
<div class="method-heading">
|
|
557
|
+
<span class="method-name">kill</span><span
|
|
558
|
+
class="method-args">()</span>
|
|
559
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
560
|
+
</div>
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
<div class="method-description">
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
<div class="method-source-code" id="kill-source">
|
|
570
|
+
<pre><span class="ruby-comment"># File lib/app_controller_client.rb, line 143</span>
|
|
571
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">kill</span>()
|
|
572
|
+
<span class="ruby-identifier">make_call</span>(<span class="ruby-constant">NO_TIMEOUT</span>, <span class="ruby-constant">RETRY_ON_FAIL</span>) { <span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">kill</span>(<span class="ruby-ivar">@secret</span>) }
|
|
573
|
+
<span class="ruby-keyword">end</span></pre>
|
|
574
|
+
</div><!-- kill-source -->
|
|
575
|
+
|
|
576
|
+
</div>
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
</div><!-- kill-method -->
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
<div id="method-i-make_call" class="method-detail ">
|
|
585
|
+
|
|
586
|
+
<div class="method-heading">
|
|
587
|
+
<span class="method-name">make_call</span><span
|
|
588
|
+
class="method-args">(time, retry_on_except, want_output=true) { || ... }</span>
|
|
589
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
590
|
+
</div>
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
<div class="method-description">
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
|
|
599
|
+
<div class="method-source-code" id="make_call-source">
|
|
600
|
+
<pre><span class="ruby-comment"># File lib/app_controller_client.rb, line 41</span>
|
|
601
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">make_call</span>(<span class="ruby-identifier">time</span>, <span class="ruby-identifier">retry_on_except</span>, <span class="ruby-identifier">want_output</span>=<span class="ruby-keyword">true</span>)
|
|
602
|
+
<span class="ruby-identifier">refused_count</span> = <span class="ruby-value">0</span>
|
|
603
|
+
<span class="ruby-identifier">max</span> = <span class="ruby-value">10</span>
|
|
604
|
+
|
|
605
|
+
<span class="ruby-keyword">begin</span>
|
|
606
|
+
<span class="ruby-constant">Timeout</span><span class="ruby-operator">::</span><span class="ruby-identifier">timeout</span>(<span class="ruby-identifier">time</span>) {
|
|
607
|
+
<span class="ruby-keyword">yield</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">block_given?</span>
|
|
608
|
+
}
|
|
609
|
+
<span class="ruby-keyword">rescue</span> <span class="ruby-constant">Errno</span><span class="ruby-operator">::</span><span class="ruby-constant">ECONNREFUSED</span>
|
|
610
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">refused_count</span> <span class="ruby-operator">></span> <span class="ruby-identifier">max</span>
|
|
611
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">want_output</span>
|
|
612
|
+
<span class="ruby-identifier">abort</span>(<span class="ruby-node">"Connection with #{@ip} was refused. Is the AppController running?"</span>)
|
|
613
|
+
<span class="ruby-keyword">else</span>
|
|
614
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">Exception</span>
|
|
615
|
+
<span class="ruby-keyword">end</span>
|
|
616
|
+
<span class="ruby-keyword">else</span>
|
|
617
|
+
<span class="ruby-identifier">refused_count</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
|
|
618
|
+
<span class="ruby-constant">Kernel</span>.<span class="ruby-identifier">sleep</span>(<span class="ruby-value">1</span>)
|
|
619
|
+
<span class="ruby-keyword">retry</span>
|
|
620
|
+
<span class="ruby-keyword">end</span>
|
|
621
|
+
<span class="ruby-keyword">rescue</span> <span class="ruby-constant">OpenSSL</span><span class="ruby-operator">::</span><span class="ruby-constant">SSL</span><span class="ruby-operator">::</span><span class="ruby-constant">SSLError</span>, <span class="ruby-constant">NotImplementedError</span>, <span class="ruby-constant">Errno</span><span class="ruby-operator">::</span><span class="ruby-constant">EPIPE</span>, <span class="ruby-constant">Timeout</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span>, <span class="ruby-constant">Errno</span><span class="ruby-operator">::</span><span class="ruby-constant">ECONNRESET</span>
|
|
622
|
+
<span class="ruby-keyword">retry</span>
|
|
623
|
+
<span class="ruby-keyword">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">except</span>
|
|
624
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">retry_on_except</span>
|
|
625
|
+
<span class="ruby-keyword">retry</span>
|
|
626
|
+
<span class="ruby-keyword">else</span>
|
|
627
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">want_output</span>
|
|
628
|
+
<span class="ruby-identifier">abort</span>(<span class="ruby-node">"We saw an unexpected error of the type #{except.class} with the following message:\n#{except}."</span>)
|
|
629
|
+
<span class="ruby-keyword">else</span>
|
|
630
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">except</span>
|
|
631
|
+
<span class="ruby-keyword">end</span>
|
|
632
|
+
<span class="ruby-keyword">end</span>
|
|
633
|
+
<span class="ruby-keyword">end</span>
|
|
634
|
+
<span class="ruby-keyword">end</span></pre>
|
|
635
|
+
</div><!-- make_call-source -->
|
|
636
|
+
|
|
637
|
+
</div>
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
</div><!-- make_call-method -->
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
<div id="method-i-set_parameters" class="method-detail ">
|
|
646
|
+
|
|
647
|
+
<div class="method-heading">
|
|
648
|
+
<span class="method-name">set_parameters</span><span
|
|
649
|
+
class="method-args">(locations, creds, apps_to_start)</span>
|
|
650
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
651
|
+
</div>
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
<div class="method-description">
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
<div class="method-source-code" id="set_parameters-source">
|
|
661
|
+
<pre><span class="ruby-comment"># File lib/app_controller_client.rb, line 115</span>
|
|
662
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">set_parameters</span>(<span class="ruby-identifier">locations</span>, <span class="ruby-identifier">creds</span>, <span class="ruby-identifier">apps_to_start</span>)
|
|
663
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-string">""</span>
|
|
664
|
+
<span class="ruby-identifier">make_call</span>(<span class="ruby-value">10</span>, <span class="ruby-constant">ABORT_ON_FAIL</span>) {
|
|
665
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">conn</span>.<span class="ruby-identifier">set_parameters</span>(<span class="ruby-identifier">locations</span>, <span class="ruby-identifier">creds</span>, <span class="ruby-identifier">apps_to_start</span>, <span class="ruby-ivar">@secret</span>)
|
|
666
|
+
}
|
|
667
|
+
<span class="ruby-identifier">abort</span>(<span class="ruby-identifier">result</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">result</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">%rError:/</span>
|
|
668
|
+
<span class="ruby-keyword">end</span></pre>
|
|
669
|
+
</div><!-- set_parameters-source -->
|
|
670
|
+
|
|
671
|
+
</div>
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
|
|
676
|
+
</div><!-- set_parameters-method -->
|
|
677
|
+
|
|
678
|
+
|
|
679
|
+
<div id="method-i-status" class="method-detail ">
|
|
680
|
+
|
|
681
|
+
<div class="method-heading">
|
|
682
|
+
<span class="method-name">status</span><span
|
|
683
|
+
class="method-args">()</span>
|
|
684
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
685
|
+
</div>
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
<div class="method-description">
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
<div class="method-source-code" id="status-source">
|
|
695
|
+
<pre><span class="ruby-comment"># File lib/app_controller_client.rb, line 123</span>
|
|
696
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">status</span>()
|
|
697
|
+
<span class="ruby-keyword">return</span> <span class="ruby-node">"Status of node at #{ip}:\n"</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">get_status</span>()
|
|
698
|
+
<span class="ruby-keyword">end</span></pre>
|
|
699
|
+
</div><!-- status-source -->
|
|
700
|
+
|
|
701
|
+
</div>
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
</div><!-- status-method -->
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
<div id="method-i-stop_app" class="method-detail ">
|
|
710
|
+
|
|
711
|
+
<div class="method-heading">
|
|
712
|
+
<span class="method-name">stop_app</span><span
|
|
713
|
+
class="method-args">(app_name)</span>
|
|
714
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
715
|
+
</div>
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
<div class="method-description">
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
|
|
723
|
+
|
|
724
|
+
<div class="method-source-code" id="stop_app-source">
|
|
725
|
+
<pre><span class="ruby-comment"># File lib/app_controller_client.rb, line 131</span>
|
|
726
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">stop_app</span>(<span class="ruby-identifier">app_name</span>)
|
|
727
|
+
<span class="ruby-identifier">make_call</span>(<span class="ruby-value">30</span>, <span class="ruby-constant">RETRY_ON_FAIL</span>) { <span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">stop_app</span>(<span class="ruby-identifier">app_name</span>, <span class="ruby-ivar">@secret</span>) }
|
|
728
|
+
<span class="ruby-keyword">end</span></pre>
|
|
729
|
+
</div><!-- stop_app-source -->
|
|
730
|
+
|
|
731
|
+
</div>
|
|
732
|
+
|
|
733
|
+
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
</div><!-- stop_app-method -->
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
<div id="method-i-update" class="method-detail ">
|
|
740
|
+
|
|
741
|
+
<div class="method-heading">
|
|
742
|
+
<span class="method-name">update</span><span
|
|
743
|
+
class="method-args">(app_names)</span>
|
|
744
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
745
|
+
</div>
|
|
746
|
+
|
|
747
|
+
|
|
748
|
+
<div class="method-description">
|
|
749
|
+
|
|
750
|
+
|
|
751
|
+
|
|
752
|
+
|
|
753
|
+
|
|
754
|
+
<div class="method-source-code" id="update-source">
|
|
755
|
+
<pre><span class="ruby-comment"># File lib/app_controller_client.rb, line 135</span>
|
|
756
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">update</span>(<span class="ruby-identifier">app_names</span>)
|
|
757
|
+
<span class="ruby-identifier">make_call</span>(<span class="ruby-value">30</span>, <span class="ruby-constant">RETRY_ON_FAIL</span>) { <span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">update</span>(<span class="ruby-identifier">app_names</span>, <span class="ruby-ivar">@secret</span>) }
|
|
758
|
+
<span class="ruby-keyword">end</span></pre>
|
|
759
|
+
</div><!-- update-source -->
|
|
760
|
+
|
|
761
|
+
</div>
|
|
762
|
+
|
|
763
|
+
|
|
764
|
+
|
|
765
|
+
|
|
766
|
+
</div><!-- update-method -->
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
</section><!-- public-instance-method-details -->
|
|
770
|
+
|
|
771
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
|
772
|
+
<h3 class="section-header">Public Class Methods</h3>
|
|
773
|
+
|
|
774
|
+
|
|
775
|
+
<div id="method-c-new" class="method-detail ">
|
|
776
|
+
|
|
777
|
+
<div class="method-heading">
|
|
778
|
+
<span class="method-name">new</span><span
|
|
779
|
+
class="method-args">(ip, secret)</span>
|
|
780
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
781
|
+
</div>
|
|
782
|
+
|
|
783
|
+
|
|
784
|
+
<div class="method-description">
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+
|
|
790
|
+
<div class="method-source-code" id="new-source">
|
|
791
|
+
<pre><span class="ruby-comment"># File lib/app_controller_client.rb, line 23</span>
|
|
792
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">ip</span>, <span class="ruby-identifier">secret</span>)
|
|
793
|
+
<span class="ruby-ivar">@ip</span> = <span class="ruby-identifier">ip</span>
|
|
794
|
+
<span class="ruby-ivar">@secret</span> = <span class="ruby-identifier">secret</span>
|
|
795
|
+
|
|
796
|
+
<span class="ruby-ivar">@conn</span> = <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">RPC</span><span class="ruby-operator">::</span><span class="ruby-constant">Driver</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">"https://#{@ip}:17443"</span>)
|
|
797
|
+
<span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">add_method</span>(<span class="ruby-string">"set_parameters"</span>, <span class="ruby-string">"djinn_locations"</span>, <span class="ruby-string">"database_credentials"</span>, <span class="ruby-string">"app_names"</span>, <span class="ruby-string">"secret"</span>)
|
|
798
|
+
<span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">add_method</span>(<span class="ruby-string">"status"</span>, <span class="ruby-string">"secret"</span>)
|
|
799
|
+
<span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">add_method</span>(<span class="ruby-string">"update"</span>, <span class="ruby-string">"app_names"</span>, <span class="ruby-string">"secret"</span>)
|
|
800
|
+
<span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">add_method</span>(<span class="ruby-string">"done_uploading"</span>, <span class="ruby-string">"appname"</span>, <span class="ruby-string">"location"</span>, <span class="ruby-string">"secret"</span>)
|
|
801
|
+
<span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">add_method</span>(<span class="ruby-string">"is_done_initializing"</span>, <span class="ruby-string">"secret"</span>)
|
|
802
|
+
<span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">add_method</span>(<span class="ruby-string">"is_done_loading"</span>, <span class="ruby-string">"secret"</span>)
|
|
803
|
+
<span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">add_method</span>(<span class="ruby-string">"is_app_running"</span>, <span class="ruby-string">"appname"</span>, <span class="ruby-string">"secret"</span>)
|
|
804
|
+
<span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">add_method</span>(<span class="ruby-string">"stop_app"</span>, <span class="ruby-string">"app_name"</span>, <span class="ruby-string">"secret"</span>)
|
|
805
|
+
<span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">add_method</span>(<span class="ruby-string">"get_all_public_ips"</span>, <span class="ruby-string">"secret"</span>)
|
|
806
|
+
<span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">add_method</span>(<span class="ruby-string">"kill"</span>, <span class="ruby-string">"secret"</span>)
|
|
807
|
+
<span class="ruby-ivar">@conn</span>.<span class="ruby-identifier">add_method</span>(<span class="ruby-string">"get_role_info"</span>, <span class="ruby-string">"secret"</span>)
|
|
808
|
+
<span class="ruby-keyword">end</span></pre>
|
|
809
|
+
</div><!-- new-source -->
|
|
810
|
+
|
|
811
|
+
</div>
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
|
|
815
|
+
|
|
816
|
+
</div><!-- new-method -->
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
</section><!-- public-class-method-details -->
|
|
820
|
+
|
|
821
|
+
</section><!-- 5Buntitled-5D -->
|
|
822
|
+
|
|
823
|
+
</div><!-- documentation -->
|
|
824
|
+
|
|
825
|
+
|
|
826
|
+
<footer id="validator-badges">
|
|
827
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
|
828
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
|
829
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
|
830
|
+
</footer>
|
|
831
|
+
|