class Souyuz::ZipDsymCommandGenerator

Responsible for building the zip dsym command

Public Class Methods

detect_zip_executable() click to toggle source
# 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() click to toggle source
# File lib/souyuz/generators/zip_dsym_command_generator.rb, line 5
def generate
  parts = prefix
  parts << detect_zip_executable
  parts += options
  parts += pipe

  parts
end
options() click to toggle source
# File lib/souyuz/generators/zip_dsym_command_generator.rb, line 26
def options
  build_dsym_path = Souyuz.cache[:build_dsym_path]

  options = []
  options << "-r"
  options << "#{build_dsym_path}.zip"
  options << build_dsym_path

  options
end
pipe() click to toggle source
# File lib/souyuz/generators/zip_dsym_command_generator.rb, line 37
def pipe
  pipe = []

  pipe
end
prefix() click to toggle source
# File lib/souyuz/generators/zip_dsym_command_generator.rb, line 14
def prefix
  [""]
end