panda-motd 0.0.6 → 0.0.7
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ace8e728251d18f1ee3043f9de8cff80fe631a30cd8af80aac5026020f80f7ae
|
|
4
|
+
data.tar.gz: 26c7447624bac833cb204c98f7ff528ae4538f91a6c3490fbf5a9feeaf4a385d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: beb33befc6b4372211a23725531d59797d03c50dd45d4f28bef6741b6391d9dc28f8b987ec531ff68c52d374f8c533938357c4e87f3c6b9749f7c124cb35a48c
|
|
7
|
+
data.tar.gz: 8bf66b63249f303dc161ea32d9b37d6d1da7d0c4416d848eff3b11984c61f88decd3ee119503790beaf0cb294a64e74d91fbb36b14130fcb2454167ac5696e58
|
|
@@ -38,7 +38,7 @@ class ServiceStatus
|
|
|
38
38
|
def parse_services(services)
|
|
39
39
|
results = {}
|
|
40
40
|
|
|
41
|
-
cmd_result = `systemctl | grep '\.service'
|
|
41
|
+
cmd_result = `systemctl | grep '\.service'`.delete("^\u{0000}-\u{007F}")
|
|
42
42
|
|
|
43
43
|
if cmd_result.empty?
|
|
44
44
|
@errors << ComponentError.new(self, 'Unable to parse systemctl output')
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
components:
|
|
7
7
|
#####
|
|
8
8
|
# ASCII Text Art
|
|
9
|
-
# Generates ASCII pictures of strings.
|
|
9
|
+
# Generates ASCII pictures of strings.
|
|
10
10
|
#
|
|
11
11
|
# Settings
|
|
12
12
|
# font: The figlet font to render the text with. All supported fonts
|
|
@@ -16,12 +16,14 @@ components:
|
|
|
16
16
|
# can also use 'default' for your default terminal color. Additionally,
|
|
17
17
|
# you can prefix any of the base colors with 'light_' to get the lighter
|
|
18
18
|
# version.
|
|
19
|
+
# command: The command to run which generates the text to display.
|
|
19
20
|
#####
|
|
20
21
|
|
|
21
22
|
# ascii_text_art:
|
|
22
23
|
# enabled: true
|
|
23
24
|
# font: slant
|
|
24
25
|
# color: red
|
|
26
|
+
# command: hostname
|
|
25
27
|
|
|
26
28
|
#####
|
|
27
29
|
# Service Status
|
data/lib/panda_motd/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: panda-motd
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Taylor Thurlow
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-05-
|
|
11
|
+
date: 2018-05-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: artii
|