ops_team 1.19.0.rc1 → 1.19.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/app_config.rb +7 -7
- data/lib/environment.rb +2 -2
- data/lib/secrets.rb +4 -4
- data/ops_team.gemspec +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 469f0ff284626ef31c3676c4879d9ba6bf2c5b2ab26f1eded98ad138db9e43db
|
4
|
+
data.tar.gz: 8a59eb7631bf4c94a4f10121e84b5acadf9dc483a479907aa58221dcd8335973
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34facaa5e42df409763c6d319b8bfdac8592f024ac81d63a38158280430addc7bbdb267be07222295df796b39cd983aee42543a790f9f276406fb7435292cc1d
|
7
|
+
data.tar.gz: 3481a2b6ed57446e3f2d7addf14386710ce838401e9c1303b792e6e83250c2bb52e7f87695a62bcb0d776abcb5be4ace5652bede6cf495786fcc208b3794d785
|
data/lib/app_config.rb
CHANGED
@@ -18,21 +18,17 @@ class AppConfig
|
|
18
18
|
"config/#{env}/config.json"
|
19
19
|
end
|
20
20
|
|
21
|
-
private
|
22
|
-
|
23
21
|
def app_config_path
|
24
|
-
expand_path(Options.get("config.path"))
|
22
|
+
expand_path(Options.get("config.path") || default_filename)
|
25
23
|
end
|
26
24
|
|
25
|
+
private
|
26
|
+
|
27
27
|
def expand_path(path)
|
28
28
|
`echo #{path}`.chomp
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
|
-
def initialize(filename = "")
|
33
|
-
@filename = filename.empty? ? AppConfig.default_filename : filename
|
34
|
-
end
|
35
|
-
|
36
32
|
def load
|
37
33
|
config['environment']&.each do |key, value|
|
38
34
|
ENV[key] = value.is_a?(Hash) || value.is_a?(Array) ? value.to_json : value.to_s
|
@@ -41,6 +37,10 @@ class AppConfig
|
|
41
37
|
|
42
38
|
private
|
43
39
|
|
40
|
+
def initialize(filename = "")
|
41
|
+
@filename = filename
|
42
|
+
end
|
43
|
+
|
44
44
|
def config
|
45
45
|
@config ||= if file_contents == ""
|
46
46
|
Output.warn("Config file '#{@filename}' exists but is empty.")
|
data/lib/environment.rb
CHANGED
@@ -25,8 +25,8 @@ class Environment
|
|
25
25
|
def set_ops_variables
|
26
26
|
ENV["OPS_YML_DIR"] = File.dirname(@config_path)
|
27
27
|
ENV["OPS_VERSION"] = Version.version.to_s
|
28
|
-
ENV["OPS_SECRETS_FILE"] = Secrets.
|
29
|
-
ENV["OPS_CONFIG_FILE"] = AppConfig.
|
28
|
+
ENV["OPS_SECRETS_FILE"] = Secrets.app_config_path
|
29
|
+
ENV["OPS_CONFIG_FILE"] = AppConfig.app_config_path
|
30
30
|
end
|
31
31
|
|
32
32
|
def set_environment_aliases
|
data/lib/secrets.rb
CHANGED
@@ -13,6 +13,10 @@ class Secrets < AppConfig
|
|
13
13
|
File.exist?(ejson_path_for(env)) ? ejson_path_for(env) : json_path_for(env)
|
14
14
|
end
|
15
15
|
|
16
|
+
def app_config_path
|
17
|
+
expand_path(Options.get("secrets.path") || default_filename)
|
18
|
+
end
|
19
|
+
|
16
20
|
private
|
17
21
|
|
18
22
|
def ejson_path_for(env)
|
@@ -22,10 +26,6 @@ class Secrets < AppConfig
|
|
22
26
|
def json_path_for(env)
|
23
27
|
"config/#{env}/secrets.json"
|
24
28
|
end
|
25
|
-
|
26
|
-
def app_config_path
|
27
|
-
expand_path(Options.get("secrets.path"))
|
28
|
-
end
|
29
29
|
end
|
30
30
|
|
31
31
|
def initialize(filename = "")
|
data/ops_team.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'ops_team'
|
5
|
-
s.version = '1.19.
|
5
|
+
s.version = '1.19.1'
|
6
6
|
s.authors = [
|
7
7
|
'nickthecook@gmail.com'
|
8
8
|
]
|
9
|
-
s.date = '
|
9
|
+
s.date = '2022-06-11'
|
10
10
|
s.summary = 'ops_team handles basic automation for your project, driven by self-documenting YAML config'
|
11
11
|
s.homepage = 'https://github.com/nickthecook/ops'
|
12
12
|
s.files = Dir[
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ops_team
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.19.
|
4
|
+
version: 1.19.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nickthecook@gmail.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bcrypt_pbkdf
|
@@ -248,11 +248,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
248
248
|
version: '2.5'
|
249
249
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
250
250
|
requirements:
|
251
|
-
- - "
|
251
|
+
- - ">="
|
252
252
|
- !ruby/object:Gem::Version
|
253
|
-
version:
|
253
|
+
version: '0'
|
254
254
|
requirements: []
|
255
|
-
rubygems_version: 3.
|
255
|
+
rubygems_version: 3.3.7
|
256
256
|
signing_key:
|
257
257
|
specification_version: 4
|
258
258
|
summary: ops_team handles basic automation for your project, driven by self-documenting
|