Sha256: 8081d0e42c51c6c15acf6d7908e047b6819dcc2b10e63fe39a8be4e877ef06fb

Contents?: true

Size: 892 Bytes

Versions: 2

Compression:

Stored size: 892 Bytes

Contents

require 'ios/module/setup/Template_Configurator'

require 'thor'

module App

    class IOS_CLI < Thor 
        desc "module", "Create a new module to iOS platform"
        def module
            IOS::TemplateConfigurator.new.run
        end

        desc "install", "Install scripts and templates in project"
        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("ruby -e '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)'")
            end
            puts "Instalando swiftgen"
            system("brew install swiftgen")

            puts "✅ Instalado com sucesso"
        end
    end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shellboxCLI-0.1.1 lib/ios/iosOption.rb
shellboxCLI-0.1.0 lib/ios/iosOption.rb