Class: App::IOS_CLI
- Inherits:
-
Thor
- Object
- Thor
- App::IOS_CLI
- Defined in:
- lib/ios/iosOption.rb
Instance Method Summary collapse
Instance Method Details
#build ⇒ Object
24 25 26 |
# File 'lib/ios/iosOption.rb', line 24 def build IOS::TuistCommands.new.build end |
#generate ⇒ Object
19 20 21 |
# File 'lib/ios/iosOption.rb', line 19 def generate IOS::TuistCommands.new.generateExample end |
#generate_no_open ⇒ Object
14 15 16 |
# File 'lib/ios/iosOption.rb', line 14 def generate_no_open IOS::TuistCommands.new.generateExample(false) end |
#install ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/ios/iosOption.rb', line 29 def install puts "Verificando se existe Homebrew instalado" brewExists = system('which -s brew') if brewExists puts "Atualizando Homebrew" system('brew update') else puts "Instalando Homebrew" system("/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\"") end puts "Instalando swiftgen" system("brew install swiftgen") puts "✅ Swiftgen instalado com sucesso" install_tuist install_hooks end |
#module ⇒ Object
9 10 11 |
# File 'lib/ios/iosOption.rb', line 9 def module IOS::TemplateConfigurator.new.run end |