Class: ShellWrapper
- Inherits:
-
Object
- Object
- ShellWrapper
- Defined in:
- lib/shell_wrapper.rb
Instance Method Summary collapse
- #archive(input_paths, output_path) ⇒ Object
-
#dwarfdump(path) ⇒ Object
UUID: 69BD256A-C658-3D96-9D5A-FF4B8ED6900C (i386) Carthage/Build/iOS/Attributions.framework/Attributions UUID: BA1067DB-915A-3DA2-AC16-8C2F2947095E (x86_64) Carthage/Build/iOS/Attributions.framework/Attributions UUID: DF7DA357-FF4B-3BB8-BCC3-7CE5B97E52E0 (armv7) Carthage/Build/iOS/Attributions.framework/Attributions UUID: 824033E6-7ABA-3568-A90B-6AF6AFAF4BB9 (arm64) Carthage/Build/iOS/Attributions.framework/Attributions.
-
#swift_version ⇒ Object
Apple Swift version 4.0.3 (swiftlang-900.0.74.1 clang-900.0.39.2) Target: x86_64-apple-macosx10.9.
- #unpack(archive_path) ⇒ Object
-
#xcodebuild_version ⇒ Object
Xcode 9.2 Build version 9C40b.
Instance Method Details
#archive(input_paths, output_path) ⇒ Object
27 28 29 |
# File 'lib/shell_wrapper.rb', line 27 def archive(input_paths, output_path) sh("zip --symlinks -r #{quote output_path} #{quote input_paths}") end |
#dwarfdump(path) ⇒ Object
Returns UUID: 69BD256A-C658-3D96-9D5A-FF4B8ED6900C (i386) Carthage/Build/iOS/Attributions.framework/Attributions UUID: BA1067DB-915A-3DA2-AC16-8C2F2947095E (x86_64) Carthage/Build/iOS/Attributions.framework/Attributions UUID: DF7DA357-FF4B-3BB8-BCC3-7CE5B97E52E0 (armv7) Carthage/Build/iOS/Attributions.framework/Attributions UUID: 824033E6-7ABA-3568-A90B-6AF6AFAF4BB9 (arm64) Carthage/Build/iOS/Attributions.framework/Attributions.
23 24 25 |
# File 'lib/shell_wrapper.rb', line 23 def dwarfdump(path) sh("/usr/bin/xcrun dwarfdump --uuid \"#{path}\"") end |
#swift_version ⇒ Object
Returns Apple Swift version 4.0.3 (swiftlang-900.0.74.1 clang-900.0.39.2) Target: x86_64-apple-macosx10.9.
14 15 16 |
# File 'lib/shell_wrapper.rb', line 14 def swift_version sh("swift -version") end |
#unpack(archive_path) ⇒ Object
31 32 33 |
# File 'lib/shell_wrapper.rb', line 31 def unpack(archive_path) sh("unzip -o #{quote archive_path}") end |
#xcodebuild_version ⇒ Object
Returns Xcode 9.2 Build version 9C40b.
7 8 9 |
# File 'lib/shell_wrapper.rb', line 7 def xcodebuild_version sh("xcodebuild -version") end |