vermillion-client 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.
Files changed (103) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +1 -0
  3. data/.hound.yml +2 -0
  4. data/.rubocop.yml +320 -0
  5. data/Gemfile +3 -0
  6. data/Gemfile.lock +26 -0
  7. data/README.md +55 -0
  8. data/Rakefile +10 -0
  9. data/bin/setup +7 -0
  10. data/bin/vermillion +16 -0
  11. data/doc/ChangeBranchTest.html +240 -0
  12. data/doc/ConfigurationTest.html +277 -0
  13. data/doc/CreateTest.html +240 -0
  14. data/doc/Gemfile.html +145 -0
  15. data/doc/Gemfile_lock.html +173 -0
  16. data/doc/README_md.html +216 -0
  17. data/doc/Rakefile.html +151 -0
  18. data/doc/UpdateTest.html +280 -0
  19. data/doc/Vermillion.html +272 -0
  20. data/doc/Vermillion/Cfg.html +362 -0
  21. data/doc/Vermillion/Controller.html +185 -0
  22. data/doc/Vermillion/Controller/Base.html +503 -0
  23. data/doc/Vermillion/Controller/Change.html +301 -0
  24. data/doc/Vermillion/Controller/Create.html +301 -0
  25. data/doc/Vermillion/Controller/Firstrun.html +256 -0
  26. data/doc/Vermillion/Controller/Status.html +308 -0
  27. data/doc/Vermillion/Controller/Update.html +326 -0
  28. data/doc/Vermillion/Helper.html +252 -0
  29. data/doc/Vermillion/Helper/ApiCommunication.html +307 -0
  30. data/doc/Vermillion/Helper/Endpoint.html +506 -0
  31. data/doc/Vermillion/Helper/Formatting.html +250 -0
  32. data/doc/Vermillion/Helper/Network.html +304 -0
  33. data/doc/Vermillion/Helper/Results.html +341 -0
  34. data/doc/Vermillion/Helper/Time.html +295 -0
  35. data/doc/Vermillion/Request.html +332 -0
  36. data/doc/Vermillion/Router.html +351 -0
  37. data/doc/Vermillion/Test.html +183 -0
  38. data/doc/Vermillion/Test/Base.html +260 -0
  39. data/doc/Vermillion/Utils.html +247 -0
  40. data/doc/bin/setup.html +147 -0
  41. data/doc/created.rid +33 -0
  42. data/doc/images/add.png +0 -0
  43. data/doc/images/arrow_up.png +0 -0
  44. data/doc/images/brick.png +0 -0
  45. data/doc/images/brick_link.png +0 -0
  46. data/doc/images/bug.png +0 -0
  47. data/doc/images/bullet_black.png +0 -0
  48. data/doc/images/bullet_toggle_minus.png +0 -0
  49. data/doc/images/bullet_toggle_plus.png +0 -0
  50. data/doc/images/date.png +0 -0
  51. data/doc/images/delete.png +0 -0
  52. data/doc/images/find.png +0 -0
  53. data/doc/images/loadingAnimation.gif +0 -0
  54. data/doc/images/macFFBgHack.png +0 -0
  55. data/doc/images/package.png +0 -0
  56. data/doc/images/page_green.png +0 -0
  57. data/doc/images/page_white_text.png +0 -0
  58. data/doc/images/page_white_width.png +0 -0
  59. data/doc/images/plugin.png +0 -0
  60. data/doc/images/ruby.png +0 -0
  61. data/doc/images/tag_blue.png +0 -0
  62. data/doc/images/tag_green.png +0 -0
  63. data/doc/images/transparent.png +0 -0
  64. data/doc/images/wrench.png +0 -0
  65. data/doc/images/wrench_orange.png +0 -0
  66. data/doc/images/zoom.png +0 -0
  67. data/doc/index.html +138 -0
  68. data/doc/js/darkfish.js +155 -0
  69. data/doc/js/jquery.js +4 -0
  70. data/doc/js/navigation.js +142 -0
  71. data/doc/js/search.js +94 -0
  72. data/doc/js/search_index.js +1 -0
  73. data/doc/js/searcher.js +228 -0
  74. data/doc/rdoc.css +595 -0
  75. data/doc/table_of_contents.html +255 -0
  76. data/doc/vermillion-client_gemspec.html +166 -0
  77. data/lib/client.rb +35 -0
  78. data/lib/client/config.rb +58 -0
  79. data/lib/client/controller.rb +68 -0
  80. data/lib/client/controller/change.rb +26 -0
  81. data/lib/client/controller/create.rb +26 -0
  82. data/lib/client/controller/firstrun.rb +30 -0
  83. data/lib/client/controller/status.rb +43 -0
  84. data/lib/client/controller/update.rb +26 -0
  85. data/lib/client/helper.rb +21 -0
  86. data/lib/client/helper/apicommunication.rb +78 -0
  87. data/lib/client/helper/endpoint.rb +61 -0
  88. data/lib/client/helper/formatting.rb +23 -0
  89. data/lib/client/helper/network.rb +54 -0
  90. data/lib/client/helper/results.rb +28 -0
  91. data/lib/client/helper/time.rb +33 -0
  92. data/lib/client/request.rb +22 -0
  93. data/lib/client/router.rb +56 -0
  94. data/lib/client/utils.rb +18 -0
  95. data/lib/client/version.rb +4 -0
  96. data/lib/test.rb +13 -0
  97. data/lib/test/base.rb +17 -0
  98. data/test/test_change_branch.rb +14 -0
  99. data/test/test_configuration.rb +21 -0
  100. data/test/test_create.rb +14 -0
  101. data/test/test_update.rb +24 -0
  102. data/vermillion-client.gemspec +23 -0
  103. metadata +201 -0
@@ -0,0 +1,216 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>README - 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 class="file">
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
+
47
+ <div id="table-of-contents">
48
+ <nav class="section">
49
+ <h3 class="section-header">Table of Contents</h3>
50
+ <ul>
51
+ <li><a href="#label-vermillion-client">vermillion-client</a>
52
+ <li><a href="#label-Installation">Installation</a>
53
+ <li><a href="#label-Supported+Commands">Supported Commands</a>
54
+ <li><a href="#label-change">change</a>
55
+ <li><a href="#label-status">status</a>
56
+ <li><a href="#label-update">update</a>
57
+ <li><a href="#label-create">create</a>
58
+ </ul>
59
+ </nav>
60
+ </div>
61
+
62
+
63
+ <div id="project-metadata">
64
+ <nav id="fileindex-section" class="section project-section">
65
+ <h3 class="section-header">Pages</h3>
66
+
67
+ <ul>
68
+
69
+ <li class="file"><a href="./Gemfile.html">Gemfile</a>
70
+
71
+ <li class="file"><a href="./Gemfile_lock.html">Gemfile.lock</a>
72
+
73
+ <li class="file"><a href="./README_md.html">README</a>
74
+
75
+ <li class="file"><a href="./Rakefile.html">Rakefile</a>
76
+
77
+ <li class="file"><a href="./bin/setup.html">setup</a>
78
+
79
+ <li class="file"><a href="./vermillion-client_gemspec.html">vermillion-client.gemspec</a>
80
+
81
+ </ul>
82
+ </nav>
83
+
84
+ <nav id="classindex-section" class="section project-section">
85
+ <h3 class="section-header">Class and Module Index</h3>
86
+
87
+ <ul class="link-list">
88
+
89
+ <li><a href="./ChangeBranchTest.html">ChangeBranchTest</a>
90
+
91
+ <li><a href="./ConfigurationTest.html">ConfigurationTest</a>
92
+
93
+ <li><a href="./CreateTest.html">CreateTest</a>
94
+
95
+ <li><a href="./UpdateTest.html">UpdateTest</a>
96
+
97
+ <li><a href="./Vermillion.html">Vermillion</a>
98
+
99
+ <li><a href="./Vermillion/Cfg.html">Vermillion::Cfg</a>
100
+
101
+ <li><a href="./Vermillion/Controller.html">Vermillion::Controller</a>
102
+
103
+ <li><a href="./Vermillion/Controller/Base.html">Vermillion::Controller::Base</a>
104
+
105
+ <li><a href="./Vermillion/Controller/Change.html">Vermillion::Controller::Change</a>
106
+
107
+ <li><a href="./Vermillion/Controller/Create.html">Vermillion::Controller::Create</a>
108
+
109
+ <li><a href="./Vermillion/Controller/Firstrun.html">Vermillion::Controller::Firstrun</a>
110
+
111
+ <li><a href="./Vermillion/Controller/Status.html">Vermillion::Controller::Status</a>
112
+
113
+ <li><a href="./Vermillion/Controller/Update.html">Vermillion::Controller::Update</a>
114
+
115
+ <li><a href="./Vermillion/Helper.html">Vermillion::Helper</a>
116
+
117
+ <li><a href="./Vermillion/Helper/ApiCommunication.html">Vermillion::Helper::ApiCommunication</a>
118
+
119
+ <li><a href="./Vermillion/Helper/Endpoint.html">Vermillion::Helper::Endpoint</a>
120
+
121
+ <li><a href="./Vermillion/Helper/Formatting.html">Vermillion::Helper::Formatting</a>
122
+
123
+ <li><a href="./Vermillion/Helper/Network.html">Vermillion::Helper::Network</a>
124
+
125
+ <li><a href="./Vermillion/Helper/Results.html">Vermillion::Helper::Results</a>
126
+
127
+ <li><a href="./Vermillion/Helper/Time.html">Vermillion::Helper::Time</a>
128
+
129
+ <li><a href="./Vermillion/Request.html">Vermillion::Request</a>
130
+
131
+ <li><a href="./Vermillion/Router.html">Vermillion::Router</a>
132
+
133
+ <li><a href="./Vermillion/Test.html">Vermillion::Test</a>
134
+
135
+ <li><a href="./Vermillion/Test/Base.html">Vermillion::Test::Base</a>
136
+
137
+ <li><a href="./Vermillion/Utils.html">Vermillion::Utils</a>
138
+
139
+ </ul>
140
+ </nav>
141
+
142
+ </div>
143
+ </nav>
144
+
145
+ <div id="documentation" class="description">
146
+
147
+ <h1 id="label-vermillion-client">vermillion-client<span><a href="#label-vermillion-client">&para;</a> <a href="#documentation">&uarr;</a></span></h1>
148
+
149
+ <p>Interact with your <a
150
+ href="https://github.com/aapis/vermillion-server">vermillion-server</a>
151
+ instances.</p>
152
+
153
+ <h2 id="label-Installation">Installation<span><a href="#label-Installation">&para;</a> <a href="#documentation">&uarr;</a></span></h2>
154
+
155
+ <p><code>gem install vermillion-client</code></p>
156
+
157
+ <p>If no <code>~/.vermillion.yml</code> file is present, the application will
158
+ attempt to create on before anything else so you don&#39;t have to create
159
+ this file. You do have to update it with real information, here is an
160
+ example.</p>
161
+
162
+ <pre>servers:
163
+ -
164
+ name: domain1
165
+ address: domain2.com
166
+ https: false
167
+ key: SHA_HASH
168
+ -
169
+ name: local
170
+ address: localhost:8000
171
+ https: false
172
+ key: DIFFERENT_SHA_HASH
173
+ -
174
+ name: domain2
175
+ address: domain2.com
176
+ https: true
177
+ user:
178
+ test@example.com</pre>
179
+
180
+ <h2 id="label-Supported+Commands">Supported Commands<span><a href="#label-Supported+Commands">&para;</a> <a href="#documentation">&uarr;</a></span></h2>
181
+
182
+ <h3 id="label-change">change<span><a href="#label-change">&para;</a> <a href="#documentation">&uarr;</a></span></h3>
183
+
184
+ <p>Change branches on the requested server.</p>
185
+
186
+ <p><code>vermillion change branch local/domain1 -t my-feature-branch</code></p>
187
+
188
+ <h3 id="label-status">status<span><a href="#label-status">&para;</a> <a href="#documentation">&uarr;</a></span></h3>
189
+
190
+ <p>Prints information about <code>vermillion</code>, including the app&#39;s
191
+ configuration data and a list of the servers the client can access.</p>
192
+
193
+ <p><code>vermillion status</code></p>
194
+
195
+ <h3 id="label-update">update<span><a href="#label-update">&para;</a> <a href="#documentation">&uarr;</a></span></h3>
196
+
197
+ <p>Quite simply, executes <code>git-pull</code> in the requested project.</p>
198
+
199
+ <p><code>vermillion update one local/domain1</code></p>
200
+
201
+ <h3 id="label-create">create<span><a href="#label-create">&para;</a> <a href="#documentation">&uarr;</a></span></h3>
202
+
203
+ <p>Create a new directory on the server.</p>
204
+
205
+ <p><code>vermillion create one local/domain4</code></p>
206
+
207
+ </div>
208
+
209
+
210
+
211
+ <footer id="validator-badges">
212
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
213
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
214
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
215
+ </footer>
216
+
data/doc/Rakefile.html ADDED
@@ -0,0 +1,151 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>Rakefile - 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 class="file">
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
+
47
+
48
+ <div id="project-metadata">
49
+ <nav id="fileindex-section" class="section project-section">
50
+ <h3 class="section-header">Pages</h3>
51
+
52
+ <ul>
53
+
54
+ <li class="file"><a href="./Gemfile.html">Gemfile</a>
55
+
56
+ <li class="file"><a href="./Gemfile_lock.html">Gemfile.lock</a>
57
+
58
+ <li class="file"><a href="./README_md.html">README</a>
59
+
60
+ <li class="file"><a href="./Rakefile.html">Rakefile</a>
61
+
62
+ <li class="file"><a href="./bin/setup.html">setup</a>
63
+
64
+ <li class="file"><a href="./vermillion-client_gemspec.html">vermillion-client.gemspec</a>
65
+
66
+ </ul>
67
+ </nav>
68
+
69
+ <nav id="classindex-section" class="section project-section">
70
+ <h3 class="section-header">Class and Module Index</h3>
71
+
72
+ <ul class="link-list">
73
+
74
+ <li><a href="./ChangeBranchTest.html">ChangeBranchTest</a>
75
+
76
+ <li><a href="./ConfigurationTest.html">ConfigurationTest</a>
77
+
78
+ <li><a href="./CreateTest.html">CreateTest</a>
79
+
80
+ <li><a href="./UpdateTest.html">UpdateTest</a>
81
+
82
+ <li><a href="./Vermillion.html">Vermillion</a>
83
+
84
+ <li><a href="./Vermillion/Cfg.html">Vermillion::Cfg</a>
85
+
86
+ <li><a href="./Vermillion/Controller.html">Vermillion::Controller</a>
87
+
88
+ <li><a href="./Vermillion/Controller/Base.html">Vermillion::Controller::Base</a>
89
+
90
+ <li><a href="./Vermillion/Controller/Change.html">Vermillion::Controller::Change</a>
91
+
92
+ <li><a href="./Vermillion/Controller/Create.html">Vermillion::Controller::Create</a>
93
+
94
+ <li><a href="./Vermillion/Controller/Firstrun.html">Vermillion::Controller::Firstrun</a>
95
+
96
+ <li><a href="./Vermillion/Controller/Status.html">Vermillion::Controller::Status</a>
97
+
98
+ <li><a href="./Vermillion/Controller/Update.html">Vermillion::Controller::Update</a>
99
+
100
+ <li><a href="./Vermillion/Helper.html">Vermillion::Helper</a>
101
+
102
+ <li><a href="./Vermillion/Helper/ApiCommunication.html">Vermillion::Helper::ApiCommunication</a>
103
+
104
+ <li><a href="./Vermillion/Helper/Endpoint.html">Vermillion::Helper::Endpoint</a>
105
+
106
+ <li><a href="./Vermillion/Helper/Formatting.html">Vermillion::Helper::Formatting</a>
107
+
108
+ <li><a href="./Vermillion/Helper/Network.html">Vermillion::Helper::Network</a>
109
+
110
+ <li><a href="./Vermillion/Helper/Results.html">Vermillion::Helper::Results</a>
111
+
112
+ <li><a href="./Vermillion/Helper/Time.html">Vermillion::Helper::Time</a>
113
+
114
+ <li><a href="./Vermillion/Request.html">Vermillion::Request</a>
115
+
116
+ <li><a href="./Vermillion/Router.html">Vermillion::Router</a>
117
+
118
+ <li><a href="./Vermillion/Test.html">Vermillion::Test</a>
119
+
120
+ <li><a href="./Vermillion/Test/Base.html">Vermillion::Test::Base</a>
121
+
122
+ <li><a href="./Vermillion/Utils.html">Vermillion::Utils</a>
123
+
124
+ </ul>
125
+ </nav>
126
+
127
+ </div>
128
+ </nav>
129
+
130
+ <div id="documentation" class="description">
131
+
132
+ <p>require “bundler/gem_tasks” require “rake/testtask” require “client”</p>
133
+
134
+ <p>Rake::TestTask.new do |t|</p>
135
+
136
+ <pre>t.libs &lt;&lt; &#39;test&#39;</pre>
137
+
138
+ <p>end</p>
139
+
140
+ <p>desc “Run tests” task :default =&gt; :test</p>
141
+
142
+ </div>
143
+
144
+
145
+
146
+ <footer id="validator-badges">
147
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
148
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
149
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
150
+ </footer>
151
+
@@ -0,0 +1,280 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>class UpdateTest - 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
+
47
+
48
+ <div id="file-metadata">
49
+ <nav id="file-list-section" class="section">
50
+ <h3 class="section-header">Defined In</h3>
51
+ <ul>
52
+ <li>test/test_update.rb
53
+ </ul>
54
+ </nav>
55
+
56
+
57
+ </div>
58
+
59
+ <div id="class-metadata">
60
+
61
+ <nav id="parent-class-section" class="section">
62
+ <h3 class="section-header">Parent</h3>
63
+
64
+ <p class="link"><a href="Vermillion/Test/Base.html">Vermillion::Test::Base</a>
65
+
66
+ </nav>
67
+
68
+
69
+
70
+ <!-- Method Quickref -->
71
+ <nav id="method-list-section" class="section">
72
+ <h3 class="section-header">Methods</h3>
73
+
74
+ <ul class="link-list">
75
+
76
+ <li ><a href="#method-i-test_update_config">#test_update_config</a>
77
+
78
+ <li ><a href="#method-i-test_update_one">#test_update_one</a>
79
+
80
+ </ul>
81
+ </nav>
82
+
83
+ </div>
84
+
85
+ <div id="project-metadata">
86
+ <nav id="fileindex-section" class="section project-section">
87
+ <h3 class="section-header">Pages</h3>
88
+
89
+ <ul>
90
+
91
+ <li class="file"><a href="./Gemfile.html">Gemfile</a>
92
+
93
+ <li class="file"><a href="./Gemfile_lock.html">Gemfile.lock</a>
94
+
95
+ <li class="file"><a href="./README_md.html">README</a>
96
+
97
+ <li class="file"><a href="./Rakefile.html">Rakefile</a>
98
+
99
+ <li class="file"><a href="./bin/setup.html">setup</a>
100
+
101
+ <li class="file"><a href="./vermillion-client_gemspec.html">vermillion-client.gemspec</a>
102
+
103
+ </ul>
104
+ </nav>
105
+
106
+ <nav id="classindex-section" class="section project-section">
107
+ <h3 class="section-header">Class and Module Index</h3>
108
+
109
+ <ul class="link-list">
110
+
111
+ <li><a href="./ChangeBranchTest.html">ChangeBranchTest</a>
112
+
113
+ <li><a href="./ConfigurationTest.html">ConfigurationTest</a>
114
+
115
+ <li><a href="./CreateTest.html">CreateTest</a>
116
+
117
+ <li><a href="./UpdateTest.html">UpdateTest</a>
118
+
119
+ <li><a href="./Vermillion.html">Vermillion</a>
120
+
121
+ <li><a href="./Vermillion/Cfg.html">Vermillion::Cfg</a>
122
+
123
+ <li><a href="./Vermillion/Controller.html">Vermillion::Controller</a>
124
+
125
+ <li><a href="./Vermillion/Controller/Base.html">Vermillion::Controller::Base</a>
126
+
127
+ <li><a href="./Vermillion/Controller/Change.html">Vermillion::Controller::Change</a>
128
+
129
+ <li><a href="./Vermillion/Controller/Create.html">Vermillion::Controller::Create</a>
130
+
131
+ <li><a href="./Vermillion/Controller/Firstrun.html">Vermillion::Controller::Firstrun</a>
132
+
133
+ <li><a href="./Vermillion/Controller/Status.html">Vermillion::Controller::Status</a>
134
+
135
+ <li><a href="./Vermillion/Controller/Update.html">Vermillion::Controller::Update</a>
136
+
137
+ <li><a href="./Vermillion/Helper.html">Vermillion::Helper</a>
138
+
139
+ <li><a href="./Vermillion/Helper/ApiCommunication.html">Vermillion::Helper::ApiCommunication</a>
140
+
141
+ <li><a href="./Vermillion/Helper/Endpoint.html">Vermillion::Helper::Endpoint</a>
142
+
143
+ <li><a href="./Vermillion/Helper/Formatting.html">Vermillion::Helper::Formatting</a>
144
+
145
+ <li><a href="./Vermillion/Helper/Network.html">Vermillion::Helper::Network</a>
146
+
147
+ <li><a href="./Vermillion/Helper/Results.html">Vermillion::Helper::Results</a>
148
+
149
+ <li><a href="./Vermillion/Helper/Time.html">Vermillion::Helper::Time</a>
150
+
151
+ <li><a href="./Vermillion/Request.html">Vermillion::Request</a>
152
+
153
+ <li><a href="./Vermillion/Router.html">Vermillion::Router</a>
154
+
155
+ <li><a href="./Vermillion/Test.html">Vermillion::Test</a>
156
+
157
+ <li><a href="./Vermillion/Test/Base.html">Vermillion::Test::Base</a>
158
+
159
+ <li><a href="./Vermillion/Utils.html">Vermillion::Utils</a>
160
+
161
+ </ul>
162
+ </nav>
163
+
164
+ </div>
165
+ </nav>
166
+
167
+ <div id="documentation">
168
+ <h1 class="class">class UpdateTest</h1>
169
+
170
+ <div id="description" class="description">
171
+
172
+ </div><!-- description -->
173
+
174
+
175
+
176
+
177
+ <section id="5Buntitled-5D" class="documentation-section">
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+ <!-- Methods -->
187
+
188
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
189
+ <h3 class="section-header">Public Instance Methods</h3>
190
+
191
+
192
+ <div id="method-i-test_update_config" class="method-detail ">
193
+
194
+ <div class="method-heading">
195
+ <span class="method-name">test_update_config</span><span
196
+ class="method-args">()</span>
197
+
198
+ <span class="method-click-advice">click to toggle source</span>
199
+
200
+ </div>
201
+
202
+
203
+ <div class="method-description">
204
+
205
+ <p>Test updating the config manifest on one server</p>
206
+
207
+
208
+
209
+
210
+ <div class="method-source-code" id="test_update_config-source">
211
+ <pre><span class="ruby-comment"># File test/test_update.rb, line 16</span>
212
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">test_update_config</span>
213
+ <span class="ruby-identifier">req</span> = <span class="ruby-constant">MockRequest</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:update</span>, <span class="ruby-value">:one</span>, <span class="ruby-value">:local</span>)
214
+ <span class="ruby-identifier">cfg</span> = <span class="ruby-constant">Vermillion</span><span class="ruby-operator">::</span><span class="ruby-constant">Cfg</span>.<span class="ruby-identifier">new</span>.<span class="ruby-identifier">populate_config</span>
215
+
216
+ <span class="ruby-identifier">status</span> = <span class="ruby-constant">Update</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">cfg</span>, <span class="ruby-identifier">req</span>)
217
+
218
+ <span class="ruby-identifier">assert</span> <span class="ruby-identifier">status</span>.<span class="ruby-identifier">one</span>(<span class="ruby-identifier">req</span>.<span class="ruby-identifier">param</span>).<span class="ruby-identifier">zero?</span>
219
+ <span class="ruby-keyword">end</span></pre>
220
+ </div><!-- test_update_config-source -->
221
+
222
+ </div>
223
+
224
+
225
+
226
+
227
+ </div><!-- test_update_config-method -->
228
+
229
+
230
+ <div id="method-i-test_update_one" class="method-detail ">
231
+
232
+ <div class="method-heading">
233
+ <span class="method-name">test_update_one</span><span
234
+ class="method-args">()</span>
235
+
236
+ <span class="method-click-advice">click to toggle source</span>
237
+
238
+ </div>
239
+
240
+
241
+ <div class="method-description">
242
+
243
+ <p>Test updating one server</p>
244
+
245
+
246
+
247
+
248
+ <div class="method-source-code" id="test_update_one-source">
249
+ <pre><span class="ruby-comment"># File test/test_update.rb, line 6</span>
250
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">test_update_one</span>
251
+ <span class="ruby-identifier">req</span> = <span class="ruby-constant">MockRequest</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:update</span>, <span class="ruby-value">:one</span>, <span class="ruby-string">&quot;local/vermillion-server&quot;</span>)
252
+ <span class="ruby-identifier">cfg</span> = <span class="ruby-constant">Vermillion</span><span class="ruby-operator">::</span><span class="ruby-constant">Cfg</span>.<span class="ruby-identifier">new</span>.<span class="ruby-identifier">populate_config</span>
253
+
254
+ <span class="ruby-identifier">status</span> = <span class="ruby-constant">Update</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">cfg</span>, <span class="ruby-identifier">req</span>)
255
+
256
+ <span class="ruby-identifier">assert</span> <span class="ruby-identifier">status</span>.<span class="ruby-identifier">one</span>(<span class="ruby-identifier">req</span>.<span class="ruby-identifier">param</span>).<span class="ruby-identifier">zero?</span>
257
+ <span class="ruby-keyword">end</span></pre>
258
+ </div><!-- test_update_one-source -->
259
+
260
+ </div>
261
+
262
+
263
+
264
+
265
+ </div><!-- test_update_one-method -->
266
+
267
+
268
+ </section><!-- public-instance-method-details -->
269
+
270
+ </section><!-- 5Buntitled-5D -->
271
+
272
+ </div><!-- documentation -->
273
+
274
+
275
+ <footer id="validator-badges">
276
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
277
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
278
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
279
+ </footer>
280
+