Sha256: 693970fc6d226d2943864d93371e061c89c3a4656e601ae45b738c672a9c9c73

Contents?: true

Size: 645 Bytes

Versions: 5

Compression:

Stored size: 645 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]

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gym-0.3.2 lib/gym/manager.rb
gym-0.3.1 lib/gym/manager.rb
gym-0.3.0 lib/gym/manager.rb
gym-0.2.1 lib/gym/manager.rb
gym-0.2.0 lib/gym/manager.rb