Sha256: 8e45d1fe34a3965965abcaeb8d0ce4bca5fadddae59b281d9a2b51cb13acc185

Contents?: true

Size: 387 Bytes

Versions: 51

Compression:

Stored size: 387 Bytes

Contents

module Shenzhen::Agvtool
  class << self
    def what_version
      output = `agvtool what-version -terse`
      output.length > 0 ? output : nil
    end
    
    alias :vers :what_version
    
    def what_marketing_version
      output = `agvtool what-marketing-version -terse`
      output.scan(/\=(.+)$/).flatten.first
    end
    
    alias :mvers :what_marketing_version
  end
end

Version data entries

51 entries across 51 versions & 3 rubygems

Version Path
shenzhen-0.3.1 ./lib/shenzhen/agvtool.rb
shenzhen-0.3.0 ./lib/shenzhen/agvtool.rb
shenzhen-0.2.5 ./lib/shenzhen/agvtool.rb
shenzhen-0.2.4 ./lib/shenzhen/agvtool.rb
shenzhen-0.2.2 ./lib/shenzhen/agvtool.rb
shenzhen-0.2.1 ./lib/shenzhen/agvtool.rb
shenzhen-0.2.0 ./lib/shenzhen/agvtool.rb
shenzhen-0.1.0 ./lib/shenzhen/agvtool.rb
shenzhen-0.0.3 ./lib/shenzhen/agvtool.rb
shenzhen-0.0.2 ./lib/shenzhen/agvtool.rb
shenzhen-0.0.1 ./lib/shenzhen/agvtool.rb