Sha256: 7fe6069cbf8b9f70aaec8975b17ddc290b6ba185cc3acb6c3635c3649c14b57a

Contents?: true

Size: 279 Bytes

Versions: 7

Compression:

Stored size: 279 Bytes

Contents

module SimCtl
  module Xcode
    class Version
      class << self
        def gte?(version)
          @version ||= Gem::Version.new(`xcodebuild -version`.scan(/Xcode (\S+)/).flatten.first)

          @version >= Gem::Version.new(version)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
simctl-1.6.10 lib/simctl/xcode/version.rb
simctl-1.6.8 lib/simctl/xcode/version.rb
simctl-1.6.7 lib/simctl/xcode/version.rb
simctl-1.6.6 lib/simctl/xcode/version.rb
simctl-1.6.5 lib/simctl/xcode/version.rb
simctl-1.6.4 lib/simctl/xcode/version.rb
simctl-1.6.3 lib/simctl/xcode/version.rb