metatron 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/bin/console +15 -0
- data/lib/metatron/controller.rb +1 -1
- data/lib/metatron/controllers/ping.rb +1 -1
- data/lib/metatron/railtie.rb +10 -0
- data/lib/metatron/version.rb +1 -1
- data/lib/metatron.rb +3 -4
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe8d0dcac1a47b872ca203dea9ec4e816e07fdb2bb14fd01f6458ca4b7789cef
|
4
|
+
data.tar.gz: 255bc8c1efdd1c173455f3b28533ceffd70e34115aad86dba1f685dfceba1318
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca1ba6ad7b4b5aa5677b6e7bbd30fe7b643f1f9459232a950d97684430fec3d3c7b710c327aa5a98e8d9324ebe457950df9acb1b50df0678eb875b2f869b6a8d
|
7
|
+
data.tar.gz: 1c7bc21979e3087dd5e55a381d7fddb9ade45159a72a105ba6d306dd60a8cb34828bad8d9a3ee7db6e1025f5b839e287a3bc21daaa834cb8aa49f31ade19943d
|
data/Gemfile.lock
CHANGED
data/bin/console
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require "bundler/setup"
|
5
|
+
require "metatron"
|
6
|
+
|
7
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
+
# with your gem easier. You can also use a different console, if you like.
|
9
|
+
|
10
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
+
# require "pry"
|
12
|
+
# Pry.start
|
13
|
+
|
14
|
+
require "irb"
|
15
|
+
IRB.start(__FILE__)
|
data/lib/metatron/controller.rb
CHANGED
data/lib/metatron/version.rb
CHANGED
data/lib/metatron.rb
CHANGED
@@ -16,10 +16,8 @@ module Metatron
|
|
16
16
|
class Error < StandardError; end
|
17
17
|
class ConfigError < Error; end
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
# Set up log level
|
22
|
-
LOGGER.level = ENV.fetch("LOG_LEVEL", :warn)
|
19
|
+
singleton_class.attr_accessor :logger
|
20
|
+
self.logger = Logger.new($stdout, level: ENV.fetch("LOG_LEVEL", :warn))
|
23
21
|
end
|
24
22
|
|
25
23
|
# Internal requirements
|
@@ -50,3 +48,4 @@ require "metatron/templates/stateful_set"
|
|
50
48
|
require "metatron/controller"
|
51
49
|
require "metatron/sync_controller"
|
52
50
|
require "metatron/controllers/ping"
|
51
|
+
require "metatron/railtie" if defined? Rails::Railtie
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metatron
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Gnagy
|
@@ -251,9 +251,11 @@ files:
|
|
251
251
|
- LICENSE.txt
|
252
252
|
- README.md
|
253
253
|
- Rakefile
|
254
|
+
- bin/console
|
254
255
|
- lib/metatron.rb
|
255
256
|
- lib/metatron/controller.rb
|
256
257
|
- lib/metatron/controllers/ping.rb
|
258
|
+
- lib/metatron/railtie.rb
|
257
259
|
- lib/metatron/sync_controller.rb
|
258
260
|
- lib/metatron/template.rb
|
259
261
|
- lib/metatron/templates/cluster_role.rb
|