legion-data 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +7 -0
  2. data/.circleci/config.yml +147 -0
  3. data/.gitignore +13 -0
  4. data/.rspec +1 -0
  5. data/.rubocop.yml +29 -0
  6. data/Gemfile +7 -0
  7. data/README.md +35 -0
  8. data/Rakefile +55 -0
  9. data/bin/console +14 -0
  10. data/bin/setup +8 -0
  11. data/bitbucket-pipelines.yml +26 -0
  12. data/legion-data.gemspec +38 -0
  13. data/lib/legion/data.rb +43 -0
  14. data/lib/legion/data/connection.rb +30 -0
  15. data/lib/legion/data/connections/base.rb +45 -0
  16. data/lib/legion/data/connections/jdbc.rb +21 -0
  17. data/lib/legion/data/connections/mysql.rb +26 -0
  18. data/lib/legion/data/connections/mysql2.rb +26 -0
  19. data/lib/legion/data/connections/mysql_base.rb +19 -0
  20. data/lib/legion/data/migration.rb +28 -0
  21. data/lib/legion/data/migrations/001_add_schema_columns.rb +17 -0
  22. data/lib/legion/data/migrations/002_add_chains_table.rb +21 -0
  23. data/lib/legion/data/migrations/003_add_datacenters_table.rb +21 -0
  24. data/lib/legion/data/migrations/004_add_envs_table.rb +21 -0
  25. data/lib/legion/data/migrations/005_add_functions_table.rb +25 -0
  26. data/lib/legion/data/migrations/006_add_namespaces_table.rb +24 -0
  27. data/lib/legion/data/migrations/007_add_nodes_table.rb +22 -0
  28. data/lib/legion/data/migrations/008_add_relationships_table.rb +28 -0
  29. data/lib/legion/data/migrations/009_add_task_logs_table.rb +17 -0
  30. data/lib/legion/data/migrations/010_add_tasks_table.rb +20 -0
  31. data/lib/legion/data/migrations/011_add_users_and_groups.rb +28 -0
  32. data/lib/legion/data/migrations/012_foreign_keys_users_and_groups.rb +42 -0
  33. data/lib/legion/data/migrations/013_function_foreign_keys.rb +10 -0
  34. data/lib/legion/data/migrations/014_nodes_foreign_keys.rb +12 -0
  35. data/lib/legion/data/migrations/015_relationships_foreign_keys.rb +14 -0
  36. data/lib/legion/data/migrations/016_tasks_foreign_keys.rb +22 -0
  37. data/lib/legion/data/migrations/017_add_relationship_to_tasks.rb +14 -0
  38. data/lib/legion/data/model.rb +35 -0
  39. data/lib/legion/data/models/chain.rb +12 -0
  40. data/lib/legion/data/models/datacenter.rb +12 -0
  41. data/lib/legion/data/models/environment.rb +12 -0
  42. data/lib/legion/data/models/function.rb +14 -0
  43. data/lib/legion/data/models/namespace.rb +12 -0
  44. data/lib/legion/data/models/node.rb +13 -0
  45. data/lib/legion/data/models/relationship.rb +16 -0
  46. data/lib/legion/data/models/task.rb +17 -0
  47. data/lib/legion/data/models/task_log.rb +13 -0
  48. data/lib/legion/data/version.rb +5 -0
  49. metadata +230 -0
@@ -0,0 +1,42 @@
1
+ Sequel.migration do
2
+ transaction
3
+ up do
4
+ run 'ALTER TABLE `chains` ADD CONSTRAINT `chains_user_owner` FOREIGN KEY (`user_owner`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;'
5
+ run 'ALTER TABLE `chains` ADD CONSTRAINT `chains_group_owner` FOREIGN KEY (`group_owner`) REFERENCES `groups` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;'
6
+
7
+ run 'ALTER TABLE `datacenters` ADD CONSTRAINT `datacenters_user_owner` FOREIGN KEY (`user_owner`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;'
8
+ run 'ALTER TABLE `datacenters` ADD CONSTRAINT `datacenters_group_owner` FOREIGN KEY (`group_owner`) REFERENCES `groups` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;'
9
+
10
+ run 'ALTER TABLE `environments` ADD CONSTRAINT `environments_user_owner` FOREIGN KEY (`user_owner`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;'
11
+ run 'ALTER TABLE `environments` ADD CONSTRAINT `environments_group_owner` FOREIGN KEY (`group_owner`) REFERENCES `groups` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;'
12
+
13
+ run 'ALTER TABLE `functions` ADD CONSTRAINT `functions_user_owner` FOREIGN KEY (`user_owner`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;'
14
+ run 'ALTER TABLE `functions` ADD CONSTRAINT `functions_group_owner` FOREIGN KEY (`group_owner`) REFERENCES `groups` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;'
15
+
16
+ run 'ALTER TABLE `namespaces` ADD CONSTRAINT `namespaces_user_owner` FOREIGN KEY (`user_owner`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;'
17
+ run 'ALTER TABLE `namespaces` ADD CONSTRAINT `namespaces_group_owner` FOREIGN KEY (`group_owner`) REFERENCES `groups` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;'
18
+
19
+ run 'ALTER TABLE `relationships` ADD CONSTRAINT `relationships_user_owner` FOREIGN KEY (`user_owner`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;'
20
+ run 'ALTER TABLE `relationships` ADD CONSTRAINT `relationships_group_owner` FOREIGN KEY (`group_owner`) REFERENCES `groups` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;'
21
+ end
22
+
23
+ down do
24
+ run 'ALTER TABLE `relationships` DROP FOREIGN KEY `relationships_group_owner`;'
25
+ run 'ALTER TABLE `relationships` DROP FOREIGN KEY `relationships_user_owner`;'
26
+
27
+ run 'ALTER TABLE `namespaces` DROP FOREIGN KEY `namespaces_group_owner`;'
28
+ run 'ALTER TABLE `namespaces` DROP FOREIGN KEY `namespaces_user_owner`;'
29
+
30
+ run 'ALTER TABLE `functions` DROP FOREIGN KEY `functions_group_owner`;'
31
+ run 'ALTER TABLE `functions` DROP FOREIGN KEY `functions_user_owner`;'
32
+
33
+ run 'ALTER TABLE `environments` DROP FOREIGN KEY `environments_group_owner`;'
34
+ run 'ALTER TABLE `environments` DROP FOREIGN KEY `environments_user_owner`;'
35
+
36
+ run 'ALTER TABLE `datacenters` DROP FOREIGN KEY `datacenters_group_owner`;'
37
+ run 'ALTER TABLE `datacenters` DROP FOREIGN KEY `datacenters_user_owner`;'
38
+
39
+ run 'ALTER TABLE `chains` DROP FOREIGN KEY `chains_group_owner`;'
40
+ run 'ALTER TABLE `chains` DROP FOREIGN KEY `chains_user_owner`;'
41
+ end
42
+ end
@@ -0,0 +1,10 @@
1
+ Sequel.migration do
2
+ transaction
3
+ up do
4
+ run 'ALTER TABLE `functions` ADD CONSTRAINT `function_namespace_id` FOREIGN KEY (`namespace_id`) REFERENCES `namespaces` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;'
5
+ end
6
+
7
+ down do
8
+ run 'ALTER TABLE `functions` DROP FOREIGN KEY `function_namespace_id`;'
9
+ end
10
+ end
@@ -0,0 +1,12 @@
1
+ Sequel.migration do
2
+ transaction
3
+ up do
4
+ run 'ALTER TABLE `nodes` ADD CONSTRAINT `node_datacenter_id` FOREIGN KEY (`datacenter_id`) REFERENCES `datacenters` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;'
5
+ run 'ALTER TABLE `nodes` ADD CONSTRAINT `node_environment_id` FOREIGN KEY (`environment_id`) REFERENCES `environments` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;'
6
+ end
7
+
8
+ down do
9
+ run 'ALTER TABLE `nodes` DROP FOREIGN KEY `node_environment_id`;'
10
+ run 'ALTER TABLE `nodes` DROP FOREIGN KEY `node_datacenter_id`;'
11
+ end
12
+ end
@@ -0,0 +1,14 @@
1
+ Sequel.migration do
2
+ transaction
3
+ up do
4
+ run 'ALTER TABLE `relationships` ADD CONSTRAINT `relationship_chain_id` FOREIGN KEY (`chain_id`) REFERENCES `chains` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;'
5
+ run 'ALTER TABLE `relationships` ADD CONSTRAINT `relationship_trigger_id` FOREIGN KEY (`trigger_id`) REFERENCES `functions` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;'
6
+ run 'ALTER TABLE `relationships` ADD CONSTRAINT `relationship_action_id` FOREIGN KEY (`action_id`) REFERENCES `functions` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;'
7
+ end
8
+
9
+ down do
10
+ run 'ALTER TABLE `relationships` DROP FOREIGN KEY `relationship_action_id`;'
11
+ run 'ALTER TABLE `relationships` DROP FOREIGN KEY `relationship_trigger_id`;'
12
+ run 'ALTER TABLE `relationships` DROP FOREIGN KEY `relationship_chain_id`;'
13
+ end
14
+ end
@@ -0,0 +1,22 @@
1
+ Sequel.migration do
2
+ transaction
3
+ up do
4
+ run 'ALTER TABLE `tasks` ADD CONSTRAINT `task_master_id` FOREIGN KEY (`master_id`) REFERENCES `tasks` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;'
5
+ run 'ALTER TABLE `tasks` ADD CONSTRAINT `task_parent_id` FOREIGN KEY (`parent_id`) REFERENCES `tasks` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;'
6
+
7
+ run 'ALTER TABLE `task_logs` CHANGE `node_id` `node_id` INT(11) UNSIGNED NULL;'
8
+
9
+ run 'ALTER TABLE `task_logs` ADD CONSTRAINT `task_logs_task_id` FOREIGN KEY (`task_id`) REFERENCES `tasks` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;'
10
+ run 'ALTER TABLE `task_logs` ADD CONSTRAINT `task_logs_node_id` FOREIGN KEY (`node_id`) REFERENCES `nodes` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;'
11
+ end
12
+
13
+ down do
14
+ run 'ALTER TABLE `task_logs` DROP FOREIGN KEY `task_logs_node_id`;'
15
+ run 'ALTER TABLE `task_logs` DROP FOREIGN KEY `task_logs_task_id`;'
16
+
17
+ run 'ALTER TABLE `task_logs` CHANGE `node_id` `node_id` INT(11) UNSIGNED NOT NULL;'
18
+
19
+ run 'ALTER TABLE `tasks` DROP FOREIGN KEY `task_parent_id`;'
20
+ run 'ALTER TABLE `tasks` DROP FOREIGN KEY `task_master_id`;'
21
+ end
22
+ end
@@ -0,0 +1,14 @@
1
+ Sequel.migration do
2
+ transaction
3
+ up do
4
+ run 'ALTER TABLE `tasks` ADD `relationship_id` INT(11) UNSIGNED NOT NULL AFTER `status`;'
5
+ run 'ALTER TABLE `tasks` ADD CONSTRAINT `task_relationship_id` FOREIGN KEY (`relationship_id`) REFERENCES `relationships` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE;'
6
+ end
7
+
8
+ down do
9
+ run 'ALTER TABLE `task_relationship_id` DROP FOREIGN KEY `node_id`;'
10
+ alter_table(:tasks) do
11
+ drop_column :relationship_id
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,35 @@
1
+ module Legion
2
+ module Data
3
+ class Models
4
+ attr_reader :loaded_models
5
+ def initialize(options = {})
6
+ options.merge!(default_options) { |_key, v1, _v2| v1 }
7
+ @loaded_models = []
8
+ require_sequel_models if options[:auto_load]
9
+ end
10
+
11
+ def default_options
12
+ { continue_on_model_fail: false,
13
+ auto_load: true }
14
+ end
15
+
16
+ def models
17
+ %w[chain relationship function task namespace task_log datacenter environment node]
18
+ end
19
+
20
+ def require_sequel_models(files = models)
21
+ files.each { |file| load_sequel_model(file) }
22
+ end
23
+
24
+ def load_sequel_model(model)
25
+ Legion::Logging.debug("Trying to load #{model}.rb")
26
+ require_relative "models/#{model}"
27
+ @loaded_models << model
28
+ Legion::Logging.debug("Successfully loaded #{model}")
29
+ rescue LoadError => ex
30
+ Legion::Logging.fatal("Failed to load #{model}")
31
+ raise ex unless Legion::Settings[:data][:models][:continue_on_fail]
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Legion
4
+ module Data
5
+ module Model
6
+ # Used for accessing legion.chains
7
+ class Chain < Sequel::Model
8
+ one_to_many :relationship
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Legion
4
+ module Data
5
+ module Model
6
+ # Used for accessing legion.datacenters
7
+ class Datacenter < Sequel::Model
8
+ one_to_many :node
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Legion
4
+ module Data
5
+ module Model
6
+ # Used for accessing legion.environments
7
+ class Environment < Sequel::Model
8
+ one_to_many :node
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Legion
4
+ module Data
5
+ module Model
6
+ # Used for accessing legion.functions
7
+ class Function < Sequel::Model
8
+ many_to_one :namespace
9
+ one_to_many :trigger_functions, class: :Relationship, key: :trigger_id
10
+ one_to_many :action_functions, class: :Relationship, key: :action_id
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Legion
4
+ module Data
5
+ module Model
6
+ # Used for accessing legion.namespaces
7
+ class Namespace < Sequel::Model
8
+ one_to_many :function
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Legion
4
+ module Data
5
+ module Model
6
+ # Used for accessing legion.nodes
7
+ class Node < Sequel::Model
8
+ many_to_one :environment
9
+ many_to_one :datacenter
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'function'
4
+ module Legion
5
+ module Data
6
+ module Model
7
+ # Used for access legion.relationships
8
+ class Relationship < Sequel::Model
9
+ many_to_one :chain
10
+ one_to_many :task
11
+ many_to_one :trigger, class: Legion::Data::Model::Function
12
+ many_to_one :action, class: Legion::Data::Model::Function
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Legion
4
+ module Data
5
+ module Model
6
+ # Used for accessing legion.tasks
7
+ class Task < Sequel::Model
8
+ many_to_one :relationship
9
+ one_to_many :task_log
10
+ many_to_one :parent, class: self
11
+ one_to_many :children, key: :parent_id, class: self
12
+ many_to_one :master, class: self
13
+ one_to_many :slave, key: :master_id, class: self
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Legion
4
+ module Data
5
+ module Model
6
+ # Used for accessing legion.task_logs
7
+ class TaskLog < Sequel::Model
8
+ many_to_one :task
9
+ many_to_one :node
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,5 @@
1
+ module Legion
2
+ module Data
3
+ VERSION = '0.1.0'.freeze
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,230 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: legion-data
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Esity
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-01-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: codecov
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec_junit_formatter
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: legion-logging
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.1'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0.1'
111
+ - !ruby/object:Gem::Dependency
112
+ name: legion-settings
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '0.1'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '0.1'
125
+ - !ruby/object:Gem::Dependency
126
+ name: mysql2
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: sequel
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ description: The Legion connect gem
154
+ email:
155
+ - matthewdiverson@gmail.com
156
+ executables: []
157
+ extensions: []
158
+ extra_rdoc_files: []
159
+ files:
160
+ - ".circleci/config.yml"
161
+ - ".gitignore"
162
+ - ".rspec"
163
+ - ".rubocop.yml"
164
+ - Gemfile
165
+ - README.md
166
+ - Rakefile
167
+ - bin/console
168
+ - bin/setup
169
+ - bitbucket-pipelines.yml
170
+ - legion-data.gemspec
171
+ - lib/legion/data.rb
172
+ - lib/legion/data/connection.rb
173
+ - lib/legion/data/connections/base.rb
174
+ - lib/legion/data/connections/jdbc.rb
175
+ - lib/legion/data/connections/mysql.rb
176
+ - lib/legion/data/connections/mysql2.rb
177
+ - lib/legion/data/connections/mysql_base.rb
178
+ - lib/legion/data/migration.rb
179
+ - lib/legion/data/migrations/001_add_schema_columns.rb
180
+ - lib/legion/data/migrations/002_add_chains_table.rb
181
+ - lib/legion/data/migrations/003_add_datacenters_table.rb
182
+ - lib/legion/data/migrations/004_add_envs_table.rb
183
+ - lib/legion/data/migrations/005_add_functions_table.rb
184
+ - lib/legion/data/migrations/006_add_namespaces_table.rb
185
+ - lib/legion/data/migrations/007_add_nodes_table.rb
186
+ - lib/legion/data/migrations/008_add_relationships_table.rb
187
+ - lib/legion/data/migrations/009_add_task_logs_table.rb
188
+ - lib/legion/data/migrations/010_add_tasks_table.rb
189
+ - lib/legion/data/migrations/011_add_users_and_groups.rb
190
+ - lib/legion/data/migrations/012_foreign_keys_users_and_groups.rb
191
+ - lib/legion/data/migrations/013_function_foreign_keys.rb
192
+ - lib/legion/data/migrations/014_nodes_foreign_keys.rb
193
+ - lib/legion/data/migrations/015_relationships_foreign_keys.rb
194
+ - lib/legion/data/migrations/016_tasks_foreign_keys.rb
195
+ - lib/legion/data/migrations/017_add_relationship_to_tasks.rb
196
+ - lib/legion/data/model.rb
197
+ - lib/legion/data/models/chain.rb
198
+ - lib/legion/data/models/datacenter.rb
199
+ - lib/legion/data/models/environment.rb
200
+ - lib/legion/data/models/function.rb
201
+ - lib/legion/data/models/namespace.rb
202
+ - lib/legion/data/models/node.rb
203
+ - lib/legion/data/models/relationship.rb
204
+ - lib/legion/data/models/task.rb
205
+ - lib/legion/data/models/task_log.rb
206
+ - lib/legion/data/version.rb
207
+ homepage: https://bitbucket.org/legion-io/legion-data
208
+ licenses: []
209
+ metadata: {}
210
+ post_install_message:
211
+ rdoc_options: []
212
+ require_paths:
213
+ - lib
214
+ required_ruby_version: !ruby/object:Gem::Requirement
215
+ requirements:
216
+ - - ">="
217
+ - !ruby/object:Gem::Version
218
+ version: '0'
219
+ required_rubygems_version: !ruby/object:Gem::Requirement
220
+ requirements:
221
+ - - ">="
222
+ - !ruby/object:Gem::Version
223
+ version: '0'
224
+ requirements: []
225
+ rubyforge_project:
226
+ rubygems_version: 2.7.8
227
+ signing_key:
228
+ specification_version: 4
229
+ summary: Used by Legion to connect to the database
230
+ test_files: []