Last active
December 20, 2015 20:28
-
-
Save joseluistorres/6190320 to your computer and use it in GitHub Desktop.
Resuelve el acertijo de @hackergil
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env ruby | |
require 'thor' | |
class Test < Thor | |
desc "create", "Creates an empty git repository" | |
def create(dirname) | |
puts "Creating git repository" | |
FileUtils.mkdir dirname | |
FileUtils.pwd | |
`cd #{dirname}` | |
`git init .` | |
puts "Git repository has been created" | |
end | |
end | |
Test.start |
¡Listo Gil, muchas gracias!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Falta por ahí al final un Test.start fuera de la clase (línea 18). El problema que tuvimos en la línea 12 funciona tanto en Mac OSX Lion como en CentOS 6... jeje saludos!