Module: Mesmerize::Agvtool

Defined in:
lib/mesmerize/agvtool.rb

Class Method Summary collapse

Class Method Details

.what_marketing_versionObject Also known as: mvers



10
11
12
13
# File 'lib/mesmerize/agvtool.rb', line 10

def what_marketing_version
  output = `agvtool what-marketing-version -terse`
  output.scan(/\=(.+)$/).flatten.first
end

.what_versionObject Also known as: vers



3
4
5
6
# File 'lib/mesmerize/agvtool.rb', line 3

def what_version
  output = `agvtool what-version -terse`
  output.length > 0 ? output : nil
end