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 <<-EOS
 ______   ___    ___   _       _____ __ __    ___  ___   
|      | /   \  /   \ | |     / ___/|  |  |  /  _]|   \  
|      ||     ||     || |    (   \_ |  |  | /  [_ |    \ 
|_|  |_||  O  ||  O  || |___  \__  ||  _  ||    _]|  D  |
  |  |  |     ||     ||     | /  \ ||  |  ||   [_ |     |
  |  |  |     ||     ||     | \    ||  |  ||     ||     |
  |__|   \___/  \___/ |_____|  \___||__|__||_____||_____|
                                                     
#{formatted_version}
#{formatted_authors_string}
EOS
  exit
end