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
18 19 20 21 22 23 24 |
# File 'lib/souyuz/generators/zip_dsym_command_generator.rb', line 18 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
5 6 7 8 9 10 11 12 |
# File 'lib/souyuz/generators/zip_dsym_command_generator.rb', line 5 def generate parts = prefix parts << detect_zip_executable parts += parts += pipe parts end |
.options ⇒ Object
26 27 28 29 30 31 32 33 34 35 |
# File 'lib/souyuz/generators/zip_dsym_command_generator.rb', line 26 def build_dsym_path = Souyuz.cache[:build_dsym_path] = [] << "-r" << "#{build_dsym_path}.zip" << build_dsym_path end |
.pipe ⇒ Object
37 38 39 40 41 |
# File 'lib/souyuz/generators/zip_dsym_command_generator.rb', line 37 def pipe pipe = [] pipe end |
.prefix ⇒ Object
14 15 16 |
# File 'lib/souyuz/generators/zip_dsym_command_generator.rb', line 14 def prefix [""] end |