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
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NWRiNDNmYTQwZTQ3ZjY4ZmY4Y2FhYzQxOGRjMGY3ZjAxNjYzNmJjMw==
5
+ data.tar.gz: !binary |-
6
+ NTdjMWM2OTljNTIxYTk1YzA3ZWUyZmM3MTdlNmIxZmQ1YmMxNWM5Mw==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ YjJjZDc2NjQxODY0ZjU0MGExNWIxY2VlZTcwMWVkYzNkZjA1MmZiZmM0NWRl
10
+ ZjFmNmFhNWI3NGNmYjE5NmU0Y2I4ODUxNTQxYjgzMjA2OTljOTA3M2UwZmM2
11
+ YTMzZTQ0ZjM5ODBjMjA3MDFkNjVjMGUzNDg3NjAyMmJiODBhZjA=
12
+ data.tar.gz: !binary |-
13
+ MDkxYTM1YTUzODczYzg1ZDJmNTJkZjM4NGU2NTE3ZWRjZWVkMWRiYmQwMWI3
14
+ YzVjNTU5NWQzZDY0YzY5OTIwNGRiZmViMDQwMjJjYjFjNzIxOTI1MjExN2Zm
15
+ Mjg4YzNjY2E2MDYxMzQ1M2ZmM2ZjNDY4NmI2Yjc5Yzc2MWY5Nzc=
data/.gitignore ADDED
@@ -0,0 +1,10 @@
1
+ .DS_Store
2
+ *.gem
3
+ */.DS_Store
4
+ pid
5
+ log
6
+ config/databases.yml
7
+ config/email.yml
8
+ config/dump.yml
9
+ /deploy
10
+ /config
data/.rbenv-version ADDED
@@ -0,0 +1 @@
1
+ 1.9.3-p194
data/.travis.yml ADDED
@@ -0,0 +1,10 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.0.0
5
+ - 2.1.0
6
+ - rbx
7
+ # - jruby-19mode # TODO: We'll need a ODBC variant of the mysql2 driver
8
+ services:
9
+ - elasticsearch
10
+ - mysql
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in gemspec
4
+ gemspec
5
+
6
+ gem 'rake'
7
+ gem 'rspec'
8
+ gem 'awesome_print'
9
+ gem 'email_spec'
10
+ # gem 'debugger'
data/Gemfile.lock ADDED
@@ -0,0 +1,74 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ forklift_etl (1.0.7)
5
+ activesupport (~> 4.0, >= 4.0.0)
6
+ elasticsearch (~> 1.0, >= 1.0.0)
7
+ lumberjack (~> 1.0, >= 1.0.0)
8
+ mysql2 (~> 0.0, >= 0.0.1)
9
+ pony (~> 1.0, >= 1.0.0)
10
+
11
+ GEM
12
+ remote: https://rubygems.org/
13
+ specs:
14
+ activesupport (4.0.4)
15
+ i18n (~> 0.6, >= 0.6.9)
16
+ minitest (~> 4.2)
17
+ multi_json (~> 1.3)
18
+ thread_safe (~> 0.1)
19
+ tzinfo (~> 0.3.37)
20
+ addressable (2.3.6)
21
+ awesome_print (1.2.0)
22
+ diff-lcs (1.2.5)
23
+ elasticsearch (1.0.1)
24
+ elasticsearch-api (= 1.0.1)
25
+ elasticsearch-transport (= 1.0.1)
26
+ elasticsearch-api (1.0.1)
27
+ multi_json
28
+ elasticsearch-transport (1.0.1)
29
+ faraday
30
+ multi_json
31
+ email_spec (1.5.0)
32
+ launchy (~> 2.1)
33
+ mail (~> 2.2)
34
+ faraday (0.9.0)
35
+ multipart-post (>= 1.2, < 3)
36
+ i18n (0.6.9)
37
+ launchy (2.4.2)
38
+ addressable (~> 2.3)
39
+ lumberjack (1.0.5)
40
+ mail (2.5.4)
41
+ mime-types (~> 1.16)
42
+ treetop (~> 1.4.8)
43
+ mime-types (1.25.1)
44
+ minitest (4.7.5)
45
+ multi_json (1.9.2)
46
+ multipart-post (2.0.0)
47
+ mysql2 (0.3.15)
48
+ polyglot (0.3.4)
49
+ pony (1.8)
50
+ mail (>= 2.0)
51
+ rake (10.2.2)
52
+ rspec (2.14.1)
53
+ rspec-core (~> 2.14.0)
54
+ rspec-expectations (~> 2.14.0)
55
+ rspec-mocks (~> 2.14.0)
56
+ rspec-core (2.14.8)
57
+ rspec-expectations (2.14.5)
58
+ diff-lcs (>= 1.1.3, < 2.0)
59
+ rspec-mocks (2.14.6)
60
+ thread_safe (0.3.3)
61
+ treetop (1.4.15)
62
+ polyglot
63
+ polyglot (>= 0.3.1)
64
+ tzinfo (0.3.39)
65
+
66
+ PLATFORMS
67
+ ruby
68
+
69
+ DEPENDENCIES
70
+ awesome_print
71
+ email_spec
72
+ forklift_etl!
73
+ rake
74
+ rspec
data/Rakefile ADDED
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env rake
2
+ require 'rake'
3
+ require "bundler/gem_tasks"
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec) do |spec|
7
+ spec.pattern = [
8
+ 'spec/*/*_spec.rb',
9
+ 'spec/*/*/*_spec.rb',
10
+ 'spec/*/*/*/*_spec.rb',
11
+ ]
12
+ end
13
+ task :default => :spec
data/bin/forklift ADDED
@@ -0,0 +1,61 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'rubygems'
4
+ require 'fileutils'
5
+
6
+ begin
7
+ require 'forklift/forklift'
8
+ rescue LoadError
9
+ require "#{File.expand_path(File.dirname(__FILE__))}/../lib/forklift/forklift.rb"
10
+ end
11
+
12
+ def generate
13
+ p = Dir.pwd
14
+
15
+ Dir.mkdir "#{p}/config"
16
+ Dir.mkdir "#{p}/config/connections"
17
+ Dir.mkdir "#{p}/config/connections/mysql"
18
+ Dir.mkdir "#{p}/log"
19
+ Dir.mkdir "#{p}/pid"
20
+ Dir.mkdir "#{p}/template"
21
+ Dir.mkdir "#{p}/transformations"
22
+ Dir.mkdir "#{p}/transports"
23
+ Dir.mkdir "#{p}/patterns"
24
+
25
+ template('source.yml', "#{p}/config/connections/mysql/source.yml")
26
+ template('destination.yml', "#{p}/config/connections/mysql/destination.yml")
27
+ template('email.yml', "#{p}/config/email.yml")
28
+ template('email.erb', "#{p}/template/email.erb")
29
+ template('plan.rb', "#{p}/plan.rb")
30
+ end
31
+
32
+ def template(source, destination)
33
+ t = "#{File.expand_path(File.dirname(__FILE__))}/../template"
34
+ FileUtils.copy("#{t}/#{source}", destination)
35
+ puts "Example plan generated"
36
+ end
37
+
38
+
39
+ def run_plan
40
+ file = "#{Dir.pwd}/#{ARGV[0]}"
41
+ if ARGV[0].nil?
42
+ puts "[error] Please provide a plan.rb as the first argument"
43
+ exit(1)
44
+ end
45
+ Dir.chdir File.expand_path(File.dirname(ARGV[0]))
46
+ begin
47
+ require 'bundler'
48
+ Bundler.require(:default)
49
+ rescue Exception => e
50
+ puts "cannot load bundler: #{e}"
51
+ end
52
+ require file
53
+ end
54
+
55
+ ############
56
+
57
+ if ['--generate', '-generate'].include?(ARGV[0])
58
+ generate
59
+ else
60
+ run_plan
61
+ end
@@ -0,0 +1,228 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>class EmailSuffix - 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>example/transformations/email_suffix.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-i-do-21">#do!</a>
74
+
75
+ </ul>
76
+ </nav>
77
+
78
+ </div>
79
+
80
+ <div id="project-metadata">
81
+ <nav id="fileindex-section" class="section project-section">
82
+ <h3 class="section-header">Pages</h3>
83
+
84
+ <ul>
85
+
86
+ <li class="file"><a href="./Gemfile.html">Gemfile</a>
87
+
88
+ <li class="file"><a href="./Rakefile.html">Rakefile</a>
89
+
90
+ <li class="file"><a href="./example/Gemfile.html">Gemfile</a>
91
+
92
+ <li class="file"><a href="./spec/pid/pidfile.html">pidfile</a>
93
+
94
+ </ul>
95
+ </nav>
96
+
97
+ <nav id="classindex-section" class="section project-section">
98
+ <h3 class="section-header">Class and Module Index</h3>
99
+
100
+ <ul class="link-list">
101
+
102
+ <li><a href="./Forklift.html">Forklift</a>
103
+
104
+ <li><a href="./Forklift/Base.html">Forklift::Base</a>
105
+
106
+ <li><a href="./Forklift/Base/Connection.html">Forklift::Base::Connection</a>
107
+
108
+ <li><a href="./Forklift/Base/Logger.html">Forklift::Base::Logger</a>
109
+
110
+ <li><a href="./Forklift/Base/Mailer.html">Forklift::Base::Mailer</a>
111
+
112
+ <li><a href="./Forklift/Base/Mailer/ERBBinding.html">Forklift::Base::Mailer::ERBBinding</a>
113
+
114
+ <li><a href="./Forklift/Base/Pid.html">Forklift::Base::Pid</a>
115
+
116
+ <li><a href="./Forklift/Base/Utils.html">Forklift::Base::Utils</a>
117
+
118
+ <li><a href="./Forklift/Connection.html">Forklift::Connection</a>
119
+
120
+ <li><a href="./Forklift/Connection/Elasticsearch.html">Forklift::Connection::Elasticsearch</a>
121
+
122
+ <li><a href="./Forklift/Connection/Mysql.html">Forklift::Connection::Mysql</a>
123
+
124
+ <li><a href="./Forklift/Patterns.html">Forklift::Patterns</a>
125
+
126
+ <li><a href="./Forklift/Patterns/Elasticsearch.html">Forklift::Patterns::Elasticsearch</a>
127
+
128
+ <li><a href="./Forklift/Patterns/Mysql.html">Forklift::Patterns::Mysql</a>
129
+
130
+ <li><a href="./Forklift/Plan.html">Forklift::Plan</a>
131
+
132
+ <li><a href="./EmailSuffix.html">EmailSuffix</a>
133
+
134
+ <li><a href="./Object.html">Object</a>
135
+
136
+ <li><a href="./SpecClient.html">SpecClient</a>
137
+
138
+ <li><a href="./SpecPlan.html">SpecPlan</a>
139
+
140
+ <li><a href="./SpecSeeds.html">SpecSeeds</a>
141
+
142
+ </ul>
143
+ </nav>
144
+
145
+ </div>
146
+ </nav>
147
+
148
+ <div id="documentation">
149
+ <h1 class="class">class EmailSuffix</h1>
150
+
151
+ <div id="description" class="description">
152
+
153
+ </div><!-- description -->
154
+
155
+
156
+
157
+
158
+ <section id="5Buntitled-5D" class="documentation-section">
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+ <!-- Methods -->
168
+
169
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
170
+ <h3 class="section-header">Public Instance Methods</h3>
171
+
172
+
173
+ <div id="method-i-do-21" class="method-detail ">
174
+
175
+ <div class="method-heading">
176
+ <span class="method-name">do!</span><span
177
+ class="method-args">(connection, forklift)</span>
178
+ <span class="method-click-advice">click to toggle source</span>
179
+ </div>
180
+
181
+
182
+ <div class="method-description">
183
+
184
+
185
+
186
+
187
+
188
+ <div class="method-source-code" id="do-21-source">
189
+ <pre><span class="ruby-comment"># File example/transformations/email_suffix.rb, line 3</span>
190
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">do!</span>(<span class="ruby-identifier">connection</span>, <span class="ruby-identifier">forklift</span>)
191
+ <span class="ruby-identifier">forklift</span>.<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">log</span> <span class="ruby-string">&quot;collecting email suffixes...&quot;</span>
192
+
193
+ <span class="ruby-identifier">suffixes</span> = {}
194
+ <span class="ruby-identifier">connection</span>.<span class="ruby-identifier">read</span>(<span class="ruby-string">&quot;select email from users&quot;</span>){<span class="ruby-operator">|</span><span class="ruby-identifier">data</span><span class="ruby-operator">|</span>
195
+ <span class="ruby-identifier">data</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">row</span><span class="ruby-operator">|</span>
196
+ <span class="ruby-identifier">part</span> = <span class="ruby-identifier">row</span>[<span class="ruby-value">:email</span>].<span class="ruby-identifier">split</span>(<span class="ruby-string">'@'</span>).<span class="ruby-identifier">last</span>
197
+ <span class="ruby-identifier">suffixes</span>[<span class="ruby-identifier">part</span>] = <span class="ruby-value">0</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">suffixes</span>[<span class="ruby-identifier">part</span>].<span class="ruby-identifier">nil?</span>
198
+ <span class="ruby-identifier">suffixes</span>[<span class="ruby-identifier">part</span>] = <span class="ruby-identifier">suffixes</span>[<span class="ruby-identifier">part</span>] <span class="ruby-operator">+</span> <span class="ruby-value">1</span>
199
+ <span class="ruby-keyword">end</span>
200
+ }
201
+
202
+ <span class="ruby-identifier">suffixes</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">suffix</span>, <span class="ruby-identifier">count</span><span class="ruby-operator">|</span>
203
+ <span class="ruby-identifier">forklift</span>.<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">log</span> <span class="ruby-node">&quot; &gt; #{suffix}: #{count}&quot;</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">count</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">5</span>
204
+ <span class="ruby-keyword">end</span>
205
+ <span class="ruby-keyword">end</span></pre>
206
+ </div><!-- do-21-source -->
207
+
208
+ </div>
209
+
210
+
211
+
212
+
213
+ </div><!-- do-21-method -->
214
+
215
+
216
+ </section><!-- public-instance-method-details -->
217
+
218
+ </section><!-- 5Buntitled-5D -->
219
+
220
+ </div><!-- documentation -->
221
+
222
+
223
+ <footer id="validator-badges">
224
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
225
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.2.
226
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
227
+ </footer>
228
+
data/doc/Forklift.html ADDED
@@ -0,0 +1,187 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>module Forklift - 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="module">
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/forklift/base/connection.rb
51
+ <li>lib/forklift/base/logger.rb
52
+ <li>lib/forklift/base/mailer.rb
53
+ <li>lib/forklift/base/pid.rb
54
+ <li>lib/forklift/base/utils.rb
55
+ <li>lib/forklift/forklift.rb
56
+ <li>lib/forklift/patterns/elasticsearch_patterns.rb
57
+ <li>lib/forklift/patterns/mysql_patterns.rb
58
+ <li>lib/forklift/plan.rb
59
+ <li>lib/forklift/transports/elasticsearch.rb
60
+ <li>lib/forklift/transports/mysql.rb
61
+ <li>lib/forklift/version.rb
62
+ </ul>
63
+ </nav>
64
+
65
+
66
+ </div>
67
+
68
+ <div id="class-metadata">
69
+
70
+
71
+
72
+
73
+ </div>
74
+
75
+ <div id="project-metadata">
76
+ <nav id="fileindex-section" class="section project-section">
77
+ <h3 class="section-header">Pages</h3>
78
+
79
+ <ul>
80
+
81
+ <li class="file"><a href="./Gemfile.html">Gemfile</a>
82
+
83
+ <li class="file"><a href="./Rakefile.html">Rakefile</a>
84
+
85
+ <li class="file"><a href="./example/Gemfile.html">Gemfile</a>
86
+
87
+ <li class="file"><a href="./spec/pid/pidfile.html">pidfile</a>
88
+
89
+ </ul>
90
+ </nav>
91
+
92
+ <nav id="classindex-section" class="section project-section">
93
+ <h3 class="section-header">Class and Module Index</h3>
94
+
95
+ <ul class="link-list">
96
+
97
+ <li><a href="./Forklift.html">Forklift</a>
98
+
99
+ <li><a href="./Forklift/Base.html">Forklift::Base</a>
100
+
101
+ <li><a href="./Forklift/Base/Connection.html">Forklift::Base::Connection</a>
102
+
103
+ <li><a href="./Forklift/Base/Logger.html">Forklift::Base::Logger</a>
104
+
105
+ <li><a href="./Forklift/Base/Mailer.html">Forklift::Base::Mailer</a>
106
+
107
+ <li><a href="./Forklift/Base/Mailer/ERBBinding.html">Forklift::Base::Mailer::ERBBinding</a>
108
+
109
+ <li><a href="./Forklift/Base/Pid.html">Forklift::Base::Pid</a>
110
+
111
+ <li><a href="./Forklift/Base/Utils.html">Forklift::Base::Utils</a>
112
+
113
+ <li><a href="./Forklift/Connection.html">Forklift::Connection</a>
114
+
115
+ <li><a href="./Forklift/Connection/Elasticsearch.html">Forklift::Connection::Elasticsearch</a>
116
+
117
+ <li><a href="./Forklift/Connection/Mysql.html">Forklift::Connection::Mysql</a>
118
+
119
+ <li><a href="./Forklift/Patterns.html">Forklift::Patterns</a>
120
+
121
+ <li><a href="./Forklift/Patterns/Elasticsearch.html">Forklift::Patterns::Elasticsearch</a>
122
+
123
+ <li><a href="./Forklift/Patterns/Mysql.html">Forklift::Patterns::Mysql</a>
124
+
125
+ <li><a href="./Forklift/Plan.html">Forklift::Plan</a>
126
+
127
+ <li><a href="./EmailSuffix.html">EmailSuffix</a>
128
+
129
+ <li><a href="./Object.html">Object</a>
130
+
131
+ <li><a href="./SpecClient.html">SpecClient</a>
132
+
133
+ <li><a href="./SpecPlan.html">SpecPlan</a>
134
+
135
+ <li><a href="./SpecSeeds.html">SpecSeeds</a>
136
+
137
+ </ul>
138
+ </nav>
139
+
140
+ </div>
141
+ </nav>
142
+
143
+ <div id="documentation">
144
+ <h1 class="module">module Forklift</h1>
145
+
146
+ <div id="description" class="description">
147
+
148
+ </div><!-- description -->
149
+
150
+
151
+
152
+
153
+ <section id="5Buntitled-5D" class="documentation-section">
154
+
155
+
156
+
157
+
158
+
159
+ <!-- Constants -->
160
+ <section id="constants-list" class="section">
161
+ <h3 class="section-header">Constants</h3>
162
+ <dl>
163
+
164
+ <dt id="VERSION">VERSION
165
+
166
+ <dd class="description">
167
+
168
+
169
+ </dl>
170
+ </section>
171
+
172
+
173
+
174
+
175
+ <!-- Methods -->
176
+
177
+ </section><!-- 5Buntitled-5D -->
178
+
179
+ </div><!-- documentation -->
180
+
181
+
182
+ <footer id="validator-badges">
183
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
184
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.2.
185
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
186
+ </footer>
187
+