Module: Mesmerize::Agvtool
- Defined in:
- lib/mesmerize/agvtool.rb
Class Method Summary collapse
- .what_marketing_version ⇒ Object (also: mvers)
- .what_version ⇒ Object (also: vers)
Class Method Details
.what_marketing_version ⇒ Object 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_version ⇒ Object 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 |