Sha256: 20665dd3b2f704c7f23f570e72fb709e1f2f1bccb36abce52e7deb7a6fde9d22
Contents?: true
Size: 854 Bytes
Versions: 3
Compression:
Stored size: 854 Bytes
Contents
module IOS class TuistCommands def initialize() end def generateExample(open_workspace = true) current_directory = File.basename(Dir.pwd) if current_directory == "Example" puts "Rodando " + "tuist generate".magenta + " no projeto Exemplo" system('tuist generate --no-open') if File.exist?("Podfile") puts "Rodando " + "pod install".magenta + " no projeto Exemplo" system("pod install") else puts "\n❌ Arquivo Podfile não encontrado!".red end if File.exist?("Example.xcworkspace") system('open Example.xcworkspace') if open_workspace else puts "\n❌ Arquivo Example.xcworkspace não encontrado!".red end else puts "Navegue até o diretório do Example!".red end end def build puts "Rodando " + "tuist build".magenta system('tuist build') end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
shellboxCLI-0.3.2 | lib/ios/module/setup/TuistCommands.rb |
shellboxCLI-0.3.1 | lib/ios/module/setup/TuistCommands.rb |
shellboxCLI-0.3.0 | lib/ios/module/setup/TuistCommands.rb |