Class: God::CLI::Version

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

Class Method Summary (collapse)

Class Method Details

+ (Object) version



5
6
7
8
9
10
11
# File 'lib/god/cli/version.rb', line 5

def self.version
  require 'god'

  # print version
  puts "Version #{God.version}"
  exit
end

+ (Object) version_extended



13
14
15
16
17
18
19
# File 'lib/god/cli/version.rb', line 13

def self.version_extended
  puts "Version: #{God.version}"
  puts "Polls: enabled"
  puts "Events: " + God::EventHandler.event_system

  exit
end