Class: App::IOS_CLI

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

Instance Method Summary collapse

Instance Method Details

#buildObject



24
25
26
# File 'lib/ios/iosOption.rb', line 24

def build
	IOS::TuistCommands.new.build
end

#generateObject



19
20
21
# File 'lib/ios/iosOption.rb', line 19

def generate
	IOS::TuistCommands.new.generateExample
end

#generate_no_openObject



14
15
16
# File 'lib/ios/iosOption.rb', line 14

def generate_no_open
	IOS::TuistCommands.new.generateExample(false)
end

#installObject



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

#moduleObject



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

def module
      	IOS::TemplateConfigurator.new.run
end