Module: Clockker

Defined in:
lib/clockker.rb,
lib/clockker/cli.rb,
lib/clockker/config.rb,
lib/clockker/version.rb,
lib/clockker/watcher.rb,
lib/clockker/white_black_list.rb

Defined Under Namespace

Classes: CLI, Config, Watcher, WhiteBlackList

Constant Summary collapse

VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details

.macos_versionObject



4
5
6
7
8
# File 'lib/clockker/version.rb', line 4

def self.macos_version
  @mov ||= `sw_vers -productVersion`
  major, minor, patch = @mov.split('.').map{|x| x.to_i}
  return [major, minor, patch]    
end

.versionObject



14
15
16
# File 'lib/clockker/version.rb', line 14

def self.version
  ["Clockker", Clockker::VERSION, "macOS", Clockker.macos_version.join('.')].join(' ')
end

.version_stringObject



10
11
12
# File 'lib/clockker/version.rb', line 10

def self.version_string
  "Clockker #{Clockker::VERSION} on macOS #{Clockker.macos_version.join('.')}"
end