Class: Gym::Runner
- Inherits:
-
Object
- Object
- Gym::Runner
- Defined in:
- lib/gym/runner.rb
Printing out things collapse
Instance Method Summary collapse
-
#run ⇒ String
The path to the resulting ipa.
Instance Method Details
#print_command(command, title) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/gym/runner.rb', line 23 def print_command(command, title) rows = command.map do |c| current = c.to_s.dup next unless current.length > 0 match_default_parameter = current.match(/(-.*) '(.*)'/) if match_default_parameter # That's a default parameter, like `-project 'Name'` match_default_parameter[1, 2] else current.gsub!("| ", "\| ") # as the | will somehow break the terminal table [current, ""] end end puts Terminal::Table.new( title: title.green, headings: ["Option", "Value"], rows: rows.delete_if { |c| c.to_s.empty? } ) end |
#run ⇒ String
Returns The path to the resulting ipa.
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/gym/runner.rb', line 7 def run clear_old_files build_app verify_archive package_app Gym::XcodebuildFixes.swift_library_fix Gym::XcodebuildFixes.watchkit_fix Gym::XcodebuildFixes.clear_patched_package_application move_results end |