panda-motd 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b5971befc8f39c5194983b38abb1918e56636c6a35a71e2dc42243983fd6a426
4
- data.tar.gz: 7a4c4206471c1ad63dcb231e742d447d415c6ab13f6f1334073d218268a4d89a
3
+ metadata.gz: ace8e728251d18f1ee3043f9de8cff80fe631a30cd8af80aac5026020f80f7ae
4
+ data.tar.gz: 26c7447624bac833cb204c98f7ff528ae4538f91a6c3490fbf5a9feeaf4a385d
5
5
  SHA512:
6
- metadata.gz: 7d426d6dffe2c208109ad099e6fdb68891e59ae07f42c9cdb80de23f9041776862cf102c9d913441692ddb96ccb1d392084cc473629f387e8165a4c4581160f3
7
- data.tar.gz: baf84a939e6a697b6af473b3bf76d216c2e957d15eb67221c07fad3b0f917ccc4698ab7d54e03ed2d00da65f01eadb1fa8098f5285992c074085e5ef2d7a60f5
6
+ metadata.gz: beb33befc6b4372211a23725531d59797d03c50dd45d4f28bef6741b6391d9dc28f8b987ec531ff68c52d374f8c533938357c4e87f3c6b9749f7c124cb35a48c
7
+ data.tar.gz: 8bf66b63249f303dc161ea32d9b37d6d1da7d0c4416d848eff3b11984c61f88decd3ee119503790beaf0cb294a64e74d91fbb36b14130fcb2454167ac5696e58
@@ -12,7 +12,7 @@ class ASCIITextArt
12
12
  end
13
13
 
14
14
  def process
15
- @text = `hostname`
15
+ @text = `#{@config['command']}`
16
16
 
17
17
  begin
18
18
  @art = Artii::Base.new font: @config['font']
@@ -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. Currently only shows the hostname.
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
@@ -1,4 +1,4 @@
1
1
  class PandaMOTD
2
2
  #:nodoc:
3
- VERSION ||= '0.0.6'.freeze
3
+ VERSION ||= '0.0.7'.freeze
4
4
  end
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.6
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-14 00:00:00.000000000 Z
11
+ date: 2018-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: artii