clowder-common-ruby 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/initializers/0_clowder_rails.rb +17 -0
- data/lib/clowder-common-ruby/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c59a995af455cae8eec63b23c3ca984e595dfda958606f2795c57039651084f
|
4
|
+
data.tar.gz: 4d8acca543a364ccec8461cdb5edb9836b54ab65e2db6dff95913107dfb94f91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b340953eaa8ba5126296aa0403ebc6900e38ebe36a024ac82688ab5f8db0a260a22f6ac943ecb2d8f40f2f7add2604c85a04589e618da01724ee2dd7ab5bf0d
|
7
|
+
data.tar.gz: f766c81ef5663fe95f6cf8642eea32ac67a955d8f1a130fe3f0f95e83ab9a1c9c52c6e077f215de5fbdfad078b7e3c2a37084e86c0c743ec2167d9689f64f25c
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'clowder-common-ruby/rails_config'
|
2
|
+
|
3
|
+
if ClowderCommonRuby::Config.clowder_enabled? && defined?(Settings)
|
4
|
+
config = ClowderCommonRuby::RailsConfig.to_h
|
5
|
+
|
6
|
+
if config.dig('tls_ca_path')
|
7
|
+
ENV['SSL_CERT_FILE'] = Rails.root.join('tmp', 'cacert.crt')
|
8
|
+
|
9
|
+
File.open(ENV['SSL_CERT_FILE'], 'w') do |f|
|
10
|
+
f.write(File.read('/etc/pki/tls/certs/ca-bundle.crt'))
|
11
|
+
f.write(File.read('/cdapp/certs/service-ca.crt'))
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
Settings.add_source!(config)
|
16
|
+
Settings.reload!
|
17
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clowder-common-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Red Hat Developers
|
@@ -23,6 +23,7 @@ files:
|
|
23
23
|
- bin/json_schema_ruby
|
24
24
|
- bin/ruby_class_converter.rb
|
25
25
|
- bin/schema.json
|
26
|
+
- config/initializers/0_clowder_rails.rb
|
26
27
|
- lib/clowder-common-ruby.rb
|
27
28
|
- lib/clowder-common-ruby/config.rb
|
28
29
|
- lib/clowder-common-ruby/engine.rb
|