Sha256: 128df1db26ce5ef8291afe7dda0bd18c15b03b849109561dfe59f59472cc8c8e

Contents?: true

Size: 826 Bytes

Versions: 4

Compression:

Stored size: 826 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

      # The generator we need to use for the currently used Xcode version
      def generator
        if Gym.config[:use_legacy_build_api]
          PackageCommandGeneratorLegacy
        else
          PackageCommandGeneratorXcode7
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gym-0.9.0 lib/gym/generators/package_command_generator.rb
gym-0.8.5 lib/gym/generators/package_command_generator.rb
gym-0.8.4 lib/gym/generators/package_command_generator.rb
gym-0.8.3 lib/gym/generators/package_command_generator.rb