Module: Shenzhen::Agvtool

Defined in:
lib/shenzhen/agvtool.rb

Class Method Summary collapse

Class Method Details

.what_marketing_versionObject Also known as: mvers



10
11
12
13
# File 'lib/shenzhen/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/shenzhen/agvtool.rb', line 3

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