Sha256: 5ae2eb98b180c6c123051db21c56b10825ac3bf5c06c33b8bb57c3e51b3da1e7

Contents?: true

Size: 776 Bytes

Versions: 2

Compression:

Stored size: 776 Bytes

Contents

require 'shellwords'

# The concrete implementations
require 'gym/generators/package_command_generator_legacy'
require 'gym/generators/package_command_generator_xcode7'

module Gym
  class PackageCommandGenerator
    class << self
      def generate
        generator.generate
      end

      def appfile_path
        generator.appfile_path
      end

      # The path in which the ipa file will be available after executing the command
      def ipa_path
        generator.ipa_path
      end

      def dsym_path
        generator.dsym_path
      end

      private

      # The generator we need to use for the currently used Xcode version
      def generator
        Xcode.pre_7? ? PackageCommandGeneratorLegacy : PackageCommandGeneratorXcode7
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gym-0.7.0 lib/gym/generators/package_command_generator.rb
gym-0.6.2 lib/gym/generators/package_command_generator.rb