Sha256: 458fb5920c19d1df5dd6219f8f054495f621d6df61e3f82041ea929d2cb1da33

Contents?: true

Size: 1010 Bytes

Versions: 14

Compression:

Stored size: 1010 Bytes

Contents

module Gym
  class Manager
    def work(options)
      Gym.config = options

      print_summary

      return Runner.new.run
    end

    private

    def print_summary
      config = Gym.config
      rows = []
      rows << ["Project", config[:project]] if config[:project]
      rows << ["Workspace", config[:workspace]] if config[:workspace]
      rows << ["Scheme", config[:scheme]] if config[:scheme]
      rows << ["Configuration", config[:configuration]] if config[:configuration]

      if PackageCommandGenerator.generator == PackageCommandGeneratorXcode7
        rows << ["Export Method", config[:export_method]]
      end

      rows << ["Archive Path", config[:archive_path]] if config[:archive_path]
      rows << ["Platform", Gym.project.ios? ? "iOS" : "Mac"]
      rows << ["Xcode Path", Xcode.xcode_path.gsub("/Contents/Developer", "")]

      puts ""
      puts Terminal::Table.new(
        title: "Building Application 🚀".green,
        rows: rows
      )
      puts ""
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
gym-1.1.4 lib/gym/manager.rb
gym-1.1.3 lib/gym/manager.rb
gym-1.1.2 lib/gym/manager.rb
gym-1.1.1 lib/gym/manager.rb
gym-1.1.0 lib/gym/manager.rb
gym-1.0.0 lib/gym/manager.rb
gym-0.9.1 lib/gym/manager.rb
gym-0.9.0 lib/gym/manager.rb
gym-0.8.5 lib/gym/manager.rb
gym-0.8.4 lib/gym/manager.rb
gym-0.8.3 lib/gym/manager.rb
gym-0.8.2 lib/gym/manager.rb
gym-0.8.1 lib/gym/manager.rb
gym-0.8.0 lib/gym/manager.rb