forklift_etl 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. checksums.yaml +15 -0
  2. data/.gitignore +10 -0
  3. data/.rbenv-version +1 -0
  4. data/.travis.yml +10 -0
  5. data/Gemfile +10 -0
  6. data/Gemfile.lock +74 -0
  7. data/Rakefile +13 -0
  8. data/bin/forklift +61 -0
  9. data/doc/EmailSuffix.html +228 -0
  10. data/doc/Forklift.html +187 -0
  11. data/doc/Forklift/Base.html +167 -0
  12. data/doc/Forklift/Base/Connection.html +590 -0
  13. data/doc/Forklift/Base/Logger.html +453 -0
  14. data/doc/Forklift/Base/Mailer.html +399 -0
  15. data/doc/Forklift/Base/Mailer/ERBBinding.html +256 -0
  16. data/doc/Forklift/Base/Pid.html +489 -0
  17. data/doc/Forklift/Base/Utils.html +252 -0
  18. data/doc/Forklift/Connection.html +164 -0
  19. data/doc/Forklift/Connection/Elasticsearch.html +419 -0
  20. data/doc/Forklift/Connection/Mysql.html +939 -0
  21. data/doc/Forklift/Patterns.html +164 -0
  22. data/doc/Forklift/Patterns/Elasticsearch.html +169 -0
  23. data/doc/Forklift/Patterns/Mysql.html +402 -0
  24. data/doc/Forklift/Plan.html +704 -0
  25. data/doc/Gemfile.html +132 -0
  26. data/doc/Object.html +326 -0
  27. data/doc/Rakefile.html +138 -0
  28. data/doc/SpecClient.html +291 -0
  29. data/doc/SpecPlan.html +253 -0
  30. data/doc/SpecSeeds.html +303 -0
  31. data/doc/created.rid +35 -0
  32. data/doc/example/Gemfile.html +129 -0
  33. data/doc/images/add.png +0 -0
  34. data/doc/images/brick.png +0 -0
  35. data/doc/images/brick_link.png +0 -0
  36. data/doc/images/bug.png +0 -0
  37. data/doc/images/bullet_black.png +0 -0
  38. data/doc/images/bullet_toggle_minus.png +0 -0
  39. data/doc/images/bullet_toggle_plus.png +0 -0
  40. data/doc/images/date.png +0 -0
  41. data/doc/images/delete.png +0 -0
  42. data/doc/images/find.png +0 -0
  43. data/doc/images/loadingAnimation.gif +0 -0
  44. data/doc/images/macFFBgHack.png +0 -0
  45. data/doc/images/package.png +0 -0
  46. data/doc/images/page_green.png +0 -0
  47. data/doc/images/page_white_text.png +0 -0
  48. data/doc/images/page_white_width.png +0 -0
  49. data/doc/images/plugin.png +0 -0
  50. data/doc/images/ruby.png +0 -0
  51. data/doc/images/tag_blue.png +0 -0
  52. data/doc/images/tag_green.png +0 -0
  53. data/doc/images/transparent.png +0 -0
  54. data/doc/images/wrench.png +0 -0
  55. data/doc/images/wrench_orange.png +0 -0
  56. data/doc/images/zoom.png +0 -0
  57. data/doc/index.html +122 -0
  58. data/doc/js/darkfish.js +155 -0
  59. data/doc/js/jquery.js +18 -0
  60. data/doc/js/navigation.js +142 -0
  61. data/doc/js/search.js +94 -0
  62. data/doc/js/search_index.js +1 -0
  63. data/doc/js/searcher.js +228 -0
  64. data/doc/rdoc.css +543 -0
  65. data/doc/table_of_contents.html +309 -0
  66. data/example/Gemfile +3 -0
  67. data/example/Gemfile.lock +55 -0
  68. data/example/config/connections/elasticsearch/source.yml +1 -0
  69. data/example/config/connections/mysql/destination.yml +6 -0
  70. data/example/config/connections/mysql/source.yml +6 -0
  71. data/example/config/email.yml +18 -0
  72. data/example/plan.rb +87 -0
  73. data/example/template/email.erb +6 -0
  74. data/example/transformations/cleanup.sql +1 -0
  75. data/example/transformations/combined_name.sql +7 -0
  76. data/example/transformations/email_suffix.rb +20 -0
  77. data/forklift.jpg +0 -0
  78. data/forklift_etl.gemspec +28 -0
  79. data/lib/forklift/base/connection.rb +72 -0
  80. data/lib/forklift/base/logger.rb +49 -0
  81. data/lib/forklift/base/mailer.rb +83 -0
  82. data/lib/forklift/base/pid.rb +55 -0
  83. data/lib/forklift/base/utils.rb +23 -0
  84. data/lib/forklift/forklift.rb +19 -0
  85. data/lib/forklift/patterns/elasticsearch_patterns.rb +7 -0
  86. data/lib/forklift/patterns/mysql_patterns.rb +87 -0
  87. data/lib/forklift/plan.rb +138 -0
  88. data/lib/forklift/transports/elasticsearch.rb +75 -0
  89. data/lib/forklift/transports/mysql.rb +241 -0
  90. data/lib/forklift/version.rb +3 -0
  91. data/readme.md +410 -0
  92. data/spec/config/connections/elasticsearch/forklift_test.yml +1 -0
  93. data/spec/config/connections/mysql/forklift_test_destination.yml +6 -0
  94. data/spec/config/connections/mysql/forklift_test_source_a.yml +6 -0
  95. data/spec/config/connections/mysql/forklift_test_source_b.yml +6 -0
  96. data/spec/config/connections/mysql/forklift_test_working.yml +6 -0
  97. data/spec/config/email.yml +4 -0
  98. data/spec/integration/basic_spec.rb +29 -0
  99. data/spec/integration/elasticsearch_patterns_spec.rb +5 -0
  100. data/spec/integration/elasticsearch_spec.rb +95 -0
  101. data/spec/integration/multi_transport_spec.rb +112 -0
  102. data/spec/integration/mysql_patterns_spec.rb +76 -0
  103. data/spec/integration/mysql_spec.rb +138 -0
  104. data/spec/spec_helper.rb +30 -0
  105. data/spec/support/dumps/elasticsearch/forklift_test.json +7 -0
  106. data/spec/support/dumps/mysql/forklift_test_source_a.sql +79 -0
  107. data/spec/support/dumps/mysql/forklift_test_source_b.sql +23 -0
  108. data/spec/support/spec_client.rb +30 -0
  109. data/spec/support/spec_plan.rb +15 -0
  110. data/spec/support/spec_seeds.rb +69 -0
  111. data/spec/template/spec_email_template.erb +4 -0
  112. data/spec/unit/connection/mysql_spec.rb +102 -0
  113. data/spec/unit/misc/email_spec.rb +37 -0
  114. data/spec/unit/misc/pid_spec.rb +25 -0
  115. data/spec/unit/misc/step_spec.rb +53 -0
  116. data/template/destination.yml +6 -0
  117. data/template/email.erb +1 -0
  118. data/template/email.yml +18 -0
  119. data/template/plan.rb +10 -0
  120. data/template/source.yml +6 -0
  121. metadata +289 -0
data/doc/Rakefile.html ADDED
@@ -0,0 +1,138 @@
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
+ <div id="project-metadata">
47
+ <nav id="fileindex-section" class="section project-section">
48
+ <h3 class="section-header">Pages</h3>
49
+
50
+ <ul>
51
+
52
+ <li class="file"><a href="./Gemfile.html">Gemfile</a>
53
+
54
+ <li class="file"><a href="./Rakefile.html">Rakefile</a>
55
+
56
+ <li class="file"><a href="./example/Gemfile.html">Gemfile</a>
57
+
58
+ <li class="file"><a href="./spec/pid/pidfile.html">pidfile</a>
59
+
60
+ </ul>
61
+ </nav>
62
+
63
+ <nav id="classindex-section" class="section project-section">
64
+ <h3 class="section-header">Class and Module Index</h3>
65
+
66
+ <ul class="link-list">
67
+
68
+ <li><a href="./Forklift.html">Forklift</a>
69
+
70
+ <li><a href="./Forklift/Base.html">Forklift::Base</a>
71
+
72
+ <li><a href="./Forklift/Base/Connection.html">Forklift::Base::Connection</a>
73
+
74
+ <li><a href="./Forklift/Base/Logger.html">Forklift::Base::Logger</a>
75
+
76
+ <li><a href="./Forklift/Base/Mailer.html">Forklift::Base::Mailer</a>
77
+
78
+ <li><a href="./Forklift/Base/Mailer/ERBBinding.html">Forklift::Base::Mailer::ERBBinding</a>
79
+
80
+ <li><a href="./Forklift/Base/Pid.html">Forklift::Base::Pid</a>
81
+
82
+ <li><a href="./Forklift/Base/Utils.html">Forklift::Base::Utils</a>
83
+
84
+ <li><a href="./Forklift/Connection.html">Forklift::Connection</a>
85
+
86
+ <li><a href="./Forklift/Connection/Elasticsearch.html">Forklift::Connection::Elasticsearch</a>
87
+
88
+ <li><a href="./Forklift/Connection/Mysql.html">Forklift::Connection::Mysql</a>
89
+
90
+ <li><a href="./Forklift/Patterns.html">Forklift::Patterns</a>
91
+
92
+ <li><a href="./Forklift/Patterns/Elasticsearch.html">Forklift::Patterns::Elasticsearch</a>
93
+
94
+ <li><a href="./Forklift/Patterns/Mysql.html">Forklift::Patterns::Mysql</a>
95
+
96
+ <li><a href="./Forklift/Plan.html">Forklift::Plan</a>
97
+
98
+ <li><a href="./EmailSuffix.html">EmailSuffix</a>
99
+
100
+ <li><a href="./Object.html">Object</a>
101
+
102
+ <li><a href="./SpecClient.html">SpecClient</a>
103
+
104
+ <li><a href="./SpecPlan.html">SpecPlan</a>
105
+
106
+ <li><a href="./SpecSeeds.html">SpecSeeds</a>
107
+
108
+ </ul>
109
+ </nav>
110
+
111
+ </div>
112
+ </nav>
113
+
114
+ <div id="documentation" class="description">
115
+
116
+ <p>#!/usr/bin/env rake require ‘rake’ require “bundler/gem_tasks” require
117
+ ‘rspec/core/rake_task’</p>
118
+
119
+ <p>RSpec::Core::RakeTask.new(:spec) do |spec|</p>
120
+
121
+ <pre>spec.pattern = [
122
+ 'spec _spec.rb',
123
+ 'spec/ *_spec.rb',
124
+ 'spec/*/*/*/*_spec.rb',
125
+ ]</pre>
126
+
127
+ <p>end task :default =&gt; :spec</p>
128
+
129
+ </div>
130
+
131
+
132
+
133
+ <footer id="validator-badges">
134
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
135
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.2.
136
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
137
+ </footer>
138
+
@@ -0,0 +1,291 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>class SpecClient - 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>spec/support/spec_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-elasticsearch">::elasticsearch</a>
74
+
75
+ <li><a href="#method-c-load_config">::load_config</a>
76
+
77
+ <li><a href="#method-c-mysql">::mysql</a>
78
+
79
+ </ul>
80
+ </nav>
81
+
82
+ </div>
83
+
84
+ <div id="project-metadata">
85
+ <nav id="fileindex-section" class="section project-section">
86
+ <h3 class="section-header">Pages</h3>
87
+
88
+ <ul>
89
+
90
+ <li class="file"><a href="./Gemfile.html">Gemfile</a>
91
+
92
+ <li class="file"><a href="./Rakefile.html">Rakefile</a>
93
+
94
+ <li class="file"><a href="./example/Gemfile.html">Gemfile</a>
95
+
96
+ <li class="file"><a href="./spec/pid/pidfile.html">pidfile</a>
97
+
98
+ </ul>
99
+ </nav>
100
+
101
+ <nav id="classindex-section" class="section project-section">
102
+ <h3 class="section-header">Class and Module Index</h3>
103
+
104
+ <ul class="link-list">
105
+
106
+ <li><a href="./Forklift.html">Forklift</a>
107
+
108
+ <li><a href="./Forklift/Base.html">Forklift::Base</a>
109
+
110
+ <li><a href="./Forklift/Base/Connection.html">Forklift::Base::Connection</a>
111
+
112
+ <li><a href="./Forklift/Base/Logger.html">Forklift::Base::Logger</a>
113
+
114
+ <li><a href="./Forklift/Base/Mailer.html">Forklift::Base::Mailer</a>
115
+
116
+ <li><a href="./Forklift/Base/Mailer/ERBBinding.html">Forklift::Base::Mailer::ERBBinding</a>
117
+
118
+ <li><a href="./Forklift/Base/Pid.html">Forklift::Base::Pid</a>
119
+
120
+ <li><a href="./Forklift/Base/Utils.html">Forklift::Base::Utils</a>
121
+
122
+ <li><a href="./Forklift/Connection.html">Forklift::Connection</a>
123
+
124
+ <li><a href="./Forklift/Connection/Elasticsearch.html">Forklift::Connection::Elasticsearch</a>
125
+
126
+ <li><a href="./Forklift/Connection/Mysql.html">Forklift::Connection::Mysql</a>
127
+
128
+ <li><a href="./Forklift/Patterns.html">Forklift::Patterns</a>
129
+
130
+ <li><a href="./Forklift/Patterns/Elasticsearch.html">Forklift::Patterns::Elasticsearch</a>
131
+
132
+ <li><a href="./Forklift/Patterns/Mysql.html">Forklift::Patterns::Mysql</a>
133
+
134
+ <li><a href="./Forklift/Plan.html">Forklift::Plan</a>
135
+
136
+ <li><a href="./EmailSuffix.html">EmailSuffix</a>
137
+
138
+ <li><a href="./Object.html">Object</a>
139
+
140
+ <li><a href="./SpecClient.html">SpecClient</a>
141
+
142
+ <li><a href="./SpecPlan.html">SpecPlan</a>
143
+
144
+ <li><a href="./SpecSeeds.html">SpecSeeds</a>
145
+
146
+ </ul>
147
+ </nav>
148
+
149
+ </div>
150
+ </nav>
151
+
152
+ <div id="documentation">
153
+ <h1 class="class">class SpecClient</h1>
154
+
155
+ <div id="description" class="description">
156
+
157
+ </div><!-- description -->
158
+
159
+
160
+
161
+
162
+ <section id="5Buntitled-5D" class="documentation-section">
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+ <!-- Methods -->
172
+
173
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
174
+ <h3 class="section-header">Public Class Methods</h3>
175
+
176
+
177
+ <div id="method-c-elasticsearch" class="method-detail ">
178
+
179
+ <div class="method-heading">
180
+ <span class="method-name">elasticsearch</span><span
181
+ class="method-args">(name)</span>
182
+ <span class="method-click-advice">click to toggle source</span>
183
+ </div>
184
+
185
+
186
+ <div class="method-description">
187
+
188
+
189
+
190
+
191
+
192
+ <div class="method-source-code" id="elasticsearch-source">
193
+ <pre><span class="ruby-comment"># File spec/support/spec_client.rb, line 24</span>
194
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">elasticsearch</span>(<span class="ruby-identifier">name</span>)
195
+ <span class="ruby-identifier">file</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-keyword">__FILE__</span>), <span class="ruby-string">'..'</span>, <span class="ruby-string">'config'</span>, <span class="ruby-string">'connections'</span>, <span class="ruby-string">'elasticsearch'</span>, <span class="ruby-node">&quot;#{name}.yml&quot;</span>)
196
+ <span class="ruby-identifier">config</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">load_config</span>(<span class="ruby-identifier">file</span>)
197
+ <span class="ruby-operator">::</span><span class="ruby-constant">Elasticsearch</span><span class="ruby-operator">::</span><span class="ruby-constant">Client</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">config</span>)
198
+ <span class="ruby-keyword">end</span></pre>
199
+ </div><!-- elasticsearch-source -->
200
+
201
+ </div>
202
+
203
+
204
+
205
+
206
+ </div><!-- elasticsearch-method -->
207
+
208
+
209
+ <div id="method-c-load_config" class="method-detail ">
210
+
211
+ <div class="method-heading">
212
+ <span class="method-name">load_config</span><span
213
+ class="method-args">(file)</span>
214
+ <span class="method-click-advice">click to toggle source</span>
215
+ </div>
216
+
217
+
218
+ <div class="method-description">
219
+
220
+
221
+
222
+
223
+
224
+ <div class="method-source-code" id="load_config-source">
225
+ <pre><span class="ruby-comment"># File spec/support/spec_client.rb, line 6</span>
226
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">load_config</span>(<span class="ruby-identifier">file</span>)
227
+ <span class="ruby-constant">YAML</span>.<span class="ruby-identifier">load</span>(<span class="ruby-constant">ERB</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">file</span>)).<span class="ruby-identifier">result</span>)
228
+ <span class="ruby-keyword">end</span></pre>
229
+ </div><!-- load_config-source -->
230
+
231
+ </div>
232
+
233
+
234
+
235
+
236
+ </div><!-- load_config-method -->
237
+
238
+
239
+ <div id="method-c-mysql" class="method-detail ">
240
+
241
+ <div class="method-heading">
242
+ <span class="method-name">mysql</span><span
243
+ class="method-args">(name)</span>
244
+ <span class="method-click-advice">click to toggle source</span>
245
+ </div>
246
+
247
+
248
+ <div class="method-description">
249
+
250
+
251
+
252
+
253
+
254
+ <div class="method-source-code" id="mysql-source">
255
+ <pre><span class="ruby-comment"># File spec/support/spec_client.rb, line 10</span>
256
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">mysql</span>(<span class="ruby-identifier">name</span>)
257
+ <span class="ruby-identifier">file</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-keyword">__FILE__</span>), <span class="ruby-string">'..'</span>, <span class="ruby-string">'config'</span>, <span class="ruby-string">'connections'</span>, <span class="ruby-string">'mysql'</span>, <span class="ruby-node">&quot;#{name}.yml&quot;</span>)
258
+ <span class="ruby-identifier">config</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">load_config</span>(<span class="ruby-identifier">file</span>)
259
+ <span class="ruby-identifier">db</span> = <span class="ruby-identifier">config</span>[<span class="ruby-value">:database</span>]
260
+ <span class="ruby-identifier">config</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value">:database</span>)
261
+ <span class="ruby-identifier">connection</span> = <span class="ruby-operator">::</span><span class="ruby-constant">Mysql2</span><span class="ruby-operator">::</span><span class="ruby-constant">Client</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">config</span>)
262
+ <span class="ruby-keyword">begin</span>
263
+ <span class="ruby-identifier">connection</span>.<span class="ruby-identifier">query</span>(<span class="ruby-node">&quot;use `#{db}`&quot;</span>)
264
+ <span class="ruby-keyword">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">e</span>
265
+ <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;#{e} =&gt; will create new databse #{db}&quot;</span>
266
+ <span class="ruby-keyword">end</span>
267
+ <span class="ruby-identifier">connection</span>
268
+ <span class="ruby-keyword">end</span></pre>
269
+ </div><!-- mysql-source -->
270
+
271
+ </div>
272
+
273
+
274
+
275
+
276
+ </div><!-- mysql-method -->
277
+
278
+
279
+ </section><!-- public-class-method-details -->
280
+
281
+ </section><!-- 5Buntitled-5D -->
282
+
283
+ </div><!-- documentation -->
284
+
285
+
286
+ <footer id="validator-badges">
287
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
288
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.2.
289
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
290
+ </footer>
291
+
data/doc/SpecPlan.html ADDED
@@ -0,0 +1,253 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>class SpecPlan - 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>spec/support/spec_plan.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-config">::config</a>
74
+
75
+ <li><a href="#method-c-new">::new</a>
76
+
77
+ </ul>
78
+ </nav>
79
+
80
+ </div>
81
+
82
+ <div id="project-metadata">
83
+ <nav id="fileindex-section" class="section project-section">
84
+ <h3 class="section-header">Pages</h3>
85
+
86
+ <ul>
87
+
88
+ <li class="file"><a href="./Gemfile.html">Gemfile</a>
89
+
90
+ <li class="file"><a href="./Rakefile.html">Rakefile</a>
91
+
92
+ <li class="file"><a href="./example/Gemfile.html">Gemfile</a>
93
+
94
+ <li class="file"><a href="./spec/pid/pidfile.html">pidfile</a>
95
+
96
+ </ul>
97
+ </nav>
98
+
99
+ <nav id="classindex-section" class="section project-section">
100
+ <h3 class="section-header">Class and Module Index</h3>
101
+
102
+ <ul class="link-list">
103
+
104
+ <li><a href="./Forklift.html">Forklift</a>
105
+
106
+ <li><a href="./Forklift/Base.html">Forklift::Base</a>
107
+
108
+ <li><a href="./Forklift/Base/Connection.html">Forklift::Base::Connection</a>
109
+
110
+ <li><a href="./Forklift/Base/Logger.html">Forklift::Base::Logger</a>
111
+
112
+ <li><a href="./Forklift/Base/Mailer.html">Forklift::Base::Mailer</a>
113
+
114
+ <li><a href="./Forklift/Base/Mailer/ERBBinding.html">Forklift::Base::Mailer::ERBBinding</a>
115
+
116
+ <li><a href="./Forklift/Base/Pid.html">Forklift::Base::Pid</a>
117
+
118
+ <li><a href="./Forklift/Base/Utils.html">Forklift::Base::Utils</a>
119
+
120
+ <li><a href="./Forklift/Connection.html">Forklift::Connection</a>
121
+
122
+ <li><a href="./Forklift/Connection/Elasticsearch.html">Forklift::Connection::Elasticsearch</a>
123
+
124
+ <li><a href="./Forklift/Connection/Mysql.html">Forklift::Connection::Mysql</a>
125
+
126
+ <li><a href="./Forklift/Patterns.html">Forklift::Patterns</a>
127
+
128
+ <li><a href="./Forklift/Patterns/Elasticsearch.html">Forklift::Patterns::Elasticsearch</a>
129
+
130
+ <li><a href="./Forklift/Patterns/Mysql.html">Forklift::Patterns::Mysql</a>
131
+
132
+ <li><a href="./Forklift/Plan.html">Forklift::Plan</a>
133
+
134
+ <li><a href="./EmailSuffix.html">EmailSuffix</a>
135
+
136
+ <li><a href="./Object.html">Object</a>
137
+
138
+ <li><a href="./SpecClient.html">SpecClient</a>
139
+
140
+ <li><a href="./SpecPlan.html">SpecPlan</a>
141
+
142
+ <li><a href="./SpecSeeds.html">SpecSeeds</a>
143
+
144
+ </ul>
145
+ </nav>
146
+
147
+ </div>
148
+ </nav>
149
+
150
+ <div id="documentation">
151
+ <h1 class="class">class SpecPlan</h1>
152
+
153
+ <div id="description" class="description">
154
+
155
+ </div><!-- description -->
156
+
157
+
158
+
159
+
160
+ <section id="5Buntitled-5D" class="documentation-section">
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+ <!-- Methods -->
170
+
171
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
172
+ <h3 class="section-header">Public Class Methods</h3>
173
+
174
+
175
+ <div id="method-c-config" class="method-detail ">
176
+
177
+ <div class="method-heading">
178
+ <span class="method-name">config</span><span
179
+ class="method-args">()</span>
180
+ <span class="method-click-advice">click to toggle source</span>
181
+ </div>
182
+
183
+
184
+ <div class="method-description">
185
+
186
+
187
+
188
+
189
+
190
+ <div class="method-source-code" id="config-source">
191
+ <pre><span class="ruby-comment"># File spec/support/spec_plan.rb, line 2</span>
192
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">config</span>
193
+ <span class="ruby-keyword">return</span> {
194
+ <span class="ruby-value">:project_root</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">Dir</span>.<span class="ruby-identifier">pwd</span>, <span class="ruby-string">'spec'</span>),
195
+ <span class="ruby-value">:logger</span> =<span class="ruby-operator">&gt;</span> {
196
+ <span class="ruby-value">:stdout</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword">false</span>,
197
+ <span class="ruby-value">:debug</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword">false</span>,
198
+ },
199
+ }
200
+ <span class="ruby-keyword">end</span></pre>
201
+ </div><!-- config-source -->
202
+
203
+ </div>
204
+
205
+
206
+
207
+
208
+ </div><!-- config-method -->
209
+
210
+
211
+ <div id="method-c-new" class="method-detail ">
212
+
213
+ <div class="method-heading">
214
+ <span class="method-name">new</span><span
215
+ class="method-args">()</span>
216
+ <span class="method-click-advice">click to toggle source</span>
217
+ </div>
218
+
219
+
220
+ <div class="method-description">
221
+
222
+
223
+
224
+
225
+
226
+ <div class="method-source-code" id="new-source">
227
+ <pre><span class="ruby-comment"># File spec/support/spec_plan.rb, line 12</span>
228
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">new</span>
229
+ <span class="ruby-keyword">return</span> <span class="ruby-constant">Forklift</span><span class="ruby-operator">::</span><span class="ruby-constant">Plan</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">config</span>)
230
+ <span class="ruby-keyword">end</span></pre>
231
+ </div><!-- new-source -->
232
+
233
+ </div>
234
+
235
+
236
+
237
+
238
+ </div><!-- new-method -->
239
+
240
+
241
+ </section><!-- public-class-method-details -->
242
+
243
+ </section><!-- 5Buntitled-5D -->
244
+
245
+ </div><!-- documentation -->
246
+
247
+
248
+ <footer id="validator-badges">
249
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
250
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.2.
251
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
252
+ </footer>
253
+