Class: Souyuz::ZipDsymCommandGenerator
- Inherits:
-
Object
- Object
- Souyuz::ZipDsymCommandGenerator
- Defined in:
- lib/souyuz/generators/zip_dsym_command_generator.rb
Overview
Responsible for building the zip dsym command
Class Method Summary collapse
- .detect_zip_executable ⇒ Object
- .generate ⇒ Object
- .options ⇒ Object
- .pipe ⇒ Object
- .prefix ⇒ Object
Class Method Details
.detect_zip_executable ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/souyuz/generators/zip_dsym_command_generator.rb', line 19 def detect_zip_executable # dunno if anyone wants a zip which is not available thorgh PATH # but if this case exists, we provide the opportunity to do so zip = ENV['SOUYUZ_ZIP_PATH'] || 'zip' zip end |
.generate ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/souyuz/generators/zip_dsym_command_generator.rb', line 6 def generate parts = prefix parts << detect_zip_executable parts += parts += pipe parts end |
.options ⇒ Object
27 28 29 30 31 32 33 34 35 36 |
# File 'lib/souyuz/generators/zip_dsym_command_generator.rb', line 27 def build_dsym_path = Souyuz.cache[:build_dsym_path] = [] << "-r" << "#{build_dsym_path}.zip" << build_dsym_path end |
.pipe ⇒ Object
38 39 40 41 42 |
# File 'lib/souyuz/generators/zip_dsym_command_generator.rb', line 38 def pipe pipe = [] pipe end |
.prefix ⇒ Object
15 16 17 |
# File 'lib/souyuz/generators/zip_dsym_command_generator.rb', line 15 def prefix ["set -o pipefail &&"] end |