kdeploy 0.2.0 → 0.4.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.
@@ -1,28 +1,58 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'pastel'
4
+
3
5
  module Kdeploy
4
- # Banner module for displaying ASCII art banner
5
6
  module Banner
6
7
  class << self
7
8
  def show
8
- puts banner.colorize(:light_blue)
9
- end
9
+ pastel = Pastel.new
10
+ <<~BANNER.freeze
11
+ #{pastel.bright_blue(ASCII_LOGO)}
10
12
 
11
- private
13
+ #{pastel.bright_yellow('⚡')} #{pastel.bright_white('Lightweight Agentless Deployment Tool')}
14
+ #{pastel.bright_yellow('🚀')} #{pastel.bright_white('Deploy with confidence, scale with ease')}
12
15
 
13
- def banner
14
- <<~BANNER
15
- _ _
16
- /\\ /\\__| | ___ _ __ | | ___ _ _
17
- / //_/ _` |/ _ \\ '_ \\| |/ _ \\| | | |
18
- / __ \\ (_| | __/ |_) | | (_) | |_| |
19
- \\/ \\/\\__,_|\\___| .__/|_|\\___/ \\__, |
20
- |_| |___/
16
+ =====================================================================================================
21
17
 
22
- ⚡ Lightweight Agentless Deployment Tool
23
- 🚀 Deploy with confidence, scale with ease
24
18
  BANNER
25
19
  end
20
+
21
+ def show_version
22
+ pastel = Pastel.new
23
+ <<~VERSION
24
+ #{show}
25
+ #{pastel.bright_white("Version: #{VERSION}")}
26
+
27
+ VERSION
28
+ end
29
+
30
+ def show_error(message)
31
+ pastel = Pastel.new
32
+ <<~ERROR
33
+ #{show}
34
+ #{pastel.red("Error: #{message}")}
35
+
36
+ ERROR
37
+ end
38
+
39
+ def show_success(message)
40
+ pastel = Pastel.new
41
+ <<~SUCCESS
42
+ #{show}
43
+ #{pastel.green("Success: #{message}")}
44
+
45
+ SUCCESS
46
+ end
47
+
48
+ ASCII_LOGO = <<~'LOGO'
49
+ _ _
50
+ /\ /\__| | ___ _ __ | | ___ _ _
51
+ / //_/ _` |/ _ \ '_ \| |/ _ \| | | |
52
+ / __ \ (_| | __/ |_) | | (_) | |_| |
53
+ \/ \/\__,_|\___| .__/|_|\___/ \__, |
54
+ |_| |___/
55
+ LOGO
26
56
  end
27
57
  end
28
58
  end