soar_status 0.0.1 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/soar_status/status.rb +6 -22
- data/lib/soar_status/version.rb +1 -1
- data/sanity/sanity.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eccbb5631922917199e695d074e7d8d10d1252bb
|
4
|
+
data.tar.gz: 284f38c2db0c6eb5b74f718e4875297133c8b2dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbaf331fa4d5c5c906166158fa576f20c14c2a1cb286b515ee31c0a1129d2b9ccb3767fb00a779368dbc22c0502d6defab44efa0e6a966bac9a59dc6ea0e916e
|
7
|
+
data.tar.gz: 178374054d1428fdb72976f3c74d2925a853936803190bd871e3e81662be49664846694c0967391df44b7da11aa222c854900c0e950dfce07c178a0a210b30f3
|
data/lib/soar_status/status.rb
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
module SoarStatus
|
2
2
|
class Status
|
3
3
|
@@detailed_status_providers = {}
|
4
|
-
@@
|
5
|
-
@@release_commit_hash = ''
|
4
|
+
@@release = {}
|
6
5
|
@@detailed_status_providers = {}
|
7
6
|
@@functional_status_provider = nil
|
8
7
|
@@configuration = {}
|
@@ -24,20 +23,12 @@ module SoarStatus
|
|
24
23
|
@@environment
|
25
24
|
end
|
26
25
|
|
27
|
-
def self.
|
28
|
-
@@
|
26
|
+
def self.release=(release)
|
27
|
+
@@release = release
|
29
28
|
end
|
30
29
|
|
31
|
-
def self.
|
32
|
-
@@
|
33
|
-
end
|
34
|
-
|
35
|
-
def self.release_commit_hash=(release_commit_hash)
|
36
|
-
@@release_commit_hash = release_commit_hash
|
37
|
-
end
|
38
|
-
|
39
|
-
def self.release_commit_hash
|
40
|
-
@@release_commit_hash
|
30
|
+
def self.release
|
31
|
+
@@release
|
41
32
|
end
|
42
33
|
|
43
34
|
def self.register_detailed_status_provider(name,provider)
|
@@ -55,7 +46,7 @@ module SoarStatus
|
|
55
46
|
|
56
47
|
def self.detailed_status
|
57
48
|
{
|
58
|
-
'release' =>
|
49
|
+
'release' => @@release,
|
59
50
|
'configuration' => @@configuration,
|
60
51
|
'environment' => @@environment,
|
61
52
|
'functional' => self.functional_status,
|
@@ -72,12 +63,5 @@ module SoarStatus
|
|
72
63
|
end
|
73
64
|
aggregated_statuses
|
74
65
|
end
|
75
|
-
|
76
|
-
def self.compile_release_information
|
77
|
-
{
|
78
|
-
'commit_hash' => @@release_commit_hash,
|
79
|
-
'version' => @@release_version
|
80
|
-
}
|
81
|
-
end
|
82
66
|
end
|
83
67
|
end
|
data/lib/soar_status/version.rb
CHANGED
data/sanity/sanity.rb
CHANGED
@@ -41,8 +41,8 @@ class Main
|
|
41
41
|
@test_environment = { 'some' => 'environment' }
|
42
42
|
|
43
43
|
#registration of release information
|
44
|
-
SoarStatus::Status.
|
45
|
-
|
44
|
+
SoarStatus::Status.release = { 'version' => '123abc',
|
45
|
+
'hash' => 'asdfasdfasdfasdf' }
|
46
46
|
|
47
47
|
#registration of configuration and environment detail
|
48
48
|
SoarStatus::Status.configuration = @test_configuration
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soar_status
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Barney de Villiers
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|