Sha256: bef31662099cb2aed9505d76f58e87a0738e94e2957032f96abdbf29c28b02e8

Contents?: true

Size: 461 Bytes

Versions: 1

Compression:

Stored size: 461 Bytes

Contents

unless File.directory?(".git/hooks")
  puts "Pasta .git/hooks não encontrada. Certifique-se de estar no diretório raiz do seu repositório Git."
  exit 1
end

# Copia o pre-commit do CLI para a pasta .git/hooks do projeto
source_file = File.join(".hooks", "pre-commit")
destination_file = File.join(".git", "hooks", "pre-commit")

FileUtils.cp(source_file, destination_file)
File.chmod(0755, destination_file)

puts "Hook pre-commit configurado com sucesso!"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shellboxCLI-0.1.9 lib/ios/hooks/install-hooks.rb