Class: Cint::CarthageFiles
- Inherits:
-
Object
- Object
- Cint::CarthageFiles
- Defined in:
- lib/cint/carthage_files.rb
Class Method Summary collapse
Class Method Details
.exists ⇒ Object
4 5 6 |
# File 'lib/cint/carthage_files.rb', line 4 def self.exists Dir.exist? './Carthage/Build' end |
.frameworks(platform) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/cint/carthage_files.rb', line 8 def self.frameworks(platform) if platform.empty? pattern = "./Carthage/Build/*.{framework,xcframework}" else return [] unless PLATFORMS.include?(platform) pattern = "./Carthage/Build/#{platform}/*.{framework,xcframework}" end Dir.glob(pattern) end |