Class: Toolshed::Version

Inherits:
Object
  • Object
show all
Defined in:
lib/toolshed/version.rb

Overview

Display the version information with the toolshed banner

Class Method Summary collapse

Class Method Details



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/toolshed/version.rb', line 9

def self.banner
  formatted_version = format('%80s', "Version: #{Toolshed::VERSION}")
  formatted_authors_string = format('%80s', 'Authors: Jake Waller')
puts " ______   ___    ___   _       _____ __ __    ___  ___   \n|      | /   \\  /   \\ | |     / ___/|  |  |  /  _]|   \\  \n|      ||     ||     || |    (   \\_ |  |  | /  [_ |    \\ \n|_|  |_||  O  ||  O  || |___  \\__  ||  _  ||    _]|  D  |\n  |  |  |     ||     ||     | /  \\ ||  |  ||   [_ |     |\n  |  |  |     ||     ||     | \\    ||  |  ||     ||     |\n  |__|   \\___/  \\___/ |_____|  \\___||__|__||_____||_____|\n                                                     \n\#{formatted_version}\n\#{formatted_authors_string}\n"
  exit
end