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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
¡Listo Gil, muchas gracias!