Class: App::IOS_CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/ios/iosOption.rb

Instance Method Summary collapse

Instance Method Details

#installObject



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/ios/iosOption.rb', line 13

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 "✅ Instalado com sucesso"

    install_hooks
end

#moduleObject



8
9
10
# File 'lib/ios/iosOption.rb', line 8

def module
    IOS::TemplateConfigurator.new.run
end