ops_team 1.19.0 → 1.19.1.rc1
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: 2cbf7ab837504c3019433fb10aed266cdbb189e46d7da64b71fdafcef054dee4
|
4
|
+
data.tar.gz: c96510b0a2469da680ab59e15c7de55e3f9dceb3357f02de88c06e7acb977d4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95ba7d9d2ebc18b14c96fa7250b6d255a8ed2ffdd033925368617906202a23f9331bc02f2304b1ec5c73ef3b05faf86d1089ff17253d2805f1ef9814d89293e1
|
7
|
+
data.tar.gz: f48fe95210829edb5028d7880779cc39bb83829b60e558c9ea9b83ad69a1bdee1876720aea22b292825d105616169546d718eabce6c4260a6cdf5cea423dde37
|
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.rc1'
|
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.rc1
|
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: 1.3.1
|
254
254
|
requirements: []
|
255
|
-
rubygems_version: 3.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
|