Sha256: 8b8e57d6dbb496fdc2acc7b18053728f1be47af954c838a3a72f5e78eef49be2
Contents?: true
Size: 767 Bytes
Versions: 1
Compression:
Stored size: 767 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 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shellboxCLI-0.2.0 | lib/ios/module/setup/TuistCommands.rb |